OLD | NEW |
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 Loading... |
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 |
OLD | NEW |