| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>Web Animations API: DocumentTimeline tests</title> | 3 <title>Web Animations API: DocumentTimeline tests</title> |
| 4 <script src="../../../../../resources/testharness.js"></script> | 4 <script src="/resources/testharness.js"></script> |
| 5 <script src="../../../../../resources/testharnessreport.js"></script> | 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <div id="log"></div> | 6 <div id="log"></div> |
| 7 <iframe width="10" height="10" id="iframe"></iframe> | 7 <iframe width="10" height="10" id="iframe"></iframe> |
| 8 <script> | 8 <script> |
| 9 'use strict'; | 9 'use strict'; |
| 10 | 10 |
| 11 test(function() { | 11 test(function() { |
| 12 assert_equals(document.timeline, document.timeline, | 12 assert_equals(document.timeline, document.timeline, |
| 13 'document.timeline returns the same object every time'); | 13 'document.timeline returns the same object every time'); |
| 14 var iframe = document.getElementById('iframe'); | 14 var iframe = document.getElementById('iframe'); |
| 15 assert_not_equals(document.timeline, iframe.contentDocument.timeline, | 15 assert_not_equals(document.timeline, iframe.contentDocument.timeline, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 }, | 80 }, |
| 81 'document.timeline.currentTime liveness tests', | 81 'document.timeline.currentTime liveness tests', |
| 82 { | 82 { |
| 83 help: 'http://dev.w3.org/fxtf/web-animations/#script-execution-and-live-update
s-to-the-model', | 83 help: 'http://dev.w3.org/fxtf/web-animations/#script-execution-and-live-update
s-to-the-model', |
| 84 assert: [ 'The value returned by the currentTime attribute of a' + | 84 assert: [ 'The value returned by the currentTime attribute of a' + |
| 85 ' document timeline will not change within a script block' ], | 85 ' document timeline will not change within a script block' ], |
| 86 author: 'Brian Birtles' | 86 author: 'Brian Birtles' |
| 87 }); | 87 }); |
| 88 | 88 |
| 89 </script> | 89 </script> |
| OLD | NEW |