Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1642)

Side by Side Diff: bower_components/web-animations-js/test/testcases/impl-test-totimelinetime.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2 Licensed under the Apache License, Version 2.0 (the "License");
3 you may not use this file except in compliance with the License.
4 You may obtain a copy of the License at
5
6 http://www.apache.org/licenses/LICENSE-2.0
7
8 Unless required by applicable law or agreed to in writing, software
9 distributed under the License is distributed on an "AS IS" BASIS,
10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 See the License for the specific language governing permissions and
12 limitations under the License.
13 -->
14
15 <!DOCTYPE html><meta charset="UTF-8">
16 <body></body>
17 <script src="../bootstrap.js" nochecks></script>
18 <script>
19 "use strict";
20
21 var timelineOne = new AnimationTimeline(_WebAnimationsTestingUtilities._construc torToken);
22 timelineOne._startTime = 3;
23 var timelineTwo = new AnimationTimeline(_WebAnimationsTestingUtilities._construc torToken);
24 timelineTwo._startTime = 42;
25
26 test(function() {
27 var startTimeOne = timelineOne._startTime;
28 var startTimeTwo = timelineTwo._startTime;
29 var otherTime = timelineTwo.currentTime;
30 var timelineOneTime = timelineOne.toTimelineTime(otherTime, timelineTwo);
31 var timelineOneTimeExpected = otherTime + startTimeTwo - startTimeOne;
32
33 assert_approx_equals(timelineOneTime, timelineOneTimeExpected, 0.00001, 'Unexp ected result with fake start times.');
34 }, 'toTimelineTime with fake start times');
35
36 </script>
37
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698