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

Side by Side Diff: polymer_0.4.0/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
1 <!-- 1 <!--
2 Licensed under the Apache License, Version 2.0 (the "License"); 2 Licensed under the Apache License, Version 2.0 (the "License");
3 you may not use this file except in compliance with 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 4 You may obtain a copy of the License at
5 5
6 http://www.apache.org/licenses/LICENSE-2.0 6 http://www.apache.org/licenses/LICENSE-2.0
7 7
8 Unless required by applicable law or agreed to in writing, software 8 Unless required by applicable law or agreed to in writing, software
9 distributed under the License is distributed on an "AS IS" BASIS, 9 distributed under the License is distributed on an "AS IS" BASIS,
10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
(...skipping 17 matching lines...) Expand all
28 var startTimeTwo = timelineTwo._startTime; 28 var startTimeTwo = timelineTwo._startTime;
29 var otherTime = timelineTwo.currentTime; 29 var otherTime = timelineTwo.currentTime;
30 var timelineOneTime = timelineOne.toTimelineTime(otherTime, timelineTwo); 30 var timelineOneTime = timelineOne.toTimelineTime(otherTime, timelineTwo);
31 var timelineOneTimeExpected = otherTime + startTimeTwo - startTimeOne; 31 var timelineOneTimeExpected = otherTime + startTimeTwo - startTimeOne;
32 32
33 assert_approx_equals(timelineOneTime, timelineOneTimeExpected, 0.00001, 'Unexp ected result with fake start times.'); 33 assert_approx_equals(timelineOneTime, timelineOneTimeExpected, 0.00001, 'Unexp ected result with fake start times.');
34 }, 'toTimelineTime with fake start times'); 34 }, 'toTimelineTime with fake start times');
35 35
36 </script> 36 </script>
37 37
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698