Sha256: 0385246f6998bddc2c82b14dccef29b3c30b51bba8a58b4ea7fa489b02ae4db2

Contents?: true

Size: 1.34 KB

Versions: 2

Compression:

Stored size: 1.34 KB

Contents

<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<!DOCTYPE html><meta charset="UTF-8">
<body></body>
<script src="../bootstrap.js" nochecks></script>
<script>
"use strict";

var timelineOne = new AnimationTimeline(_WebAnimationsTestingUtilities._constructorToken);
timelineOne._startTime = 3;
var timelineTwo = new AnimationTimeline(_WebAnimationsTestingUtilities._constructorToken);
timelineTwo._startTime = 42;

test(function() {
  var startTimeOne = timelineOne._startTime;
  var startTimeTwo = timelineTwo._startTime;
  var otherTime = timelineTwo.currentTime;
  var timelineOneTime = timelineOne.toTimelineTime(otherTime, timelineTwo);
  var timelineOneTimeExpected = otherTime + startTimeTwo - startTimeOne;
  
  assert_approx_equals(timelineOneTime, timelineOneTimeExpected, 0.00001, 'Unexpected result with fake start times.');
}, 'toTimelineTime with fake start times');

</script>

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
polymer-paper-rails-0.2.0 app/assets/components/web-animations-js/test/testcases/impl-test-totimelinetime.html
polymer-core-rails-0.2.0 app/assets/components/web-animations-js/test/testcases/impl-test-totimelinetime.html