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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/animation-timeline/document-timeline.html

Issue 1962003002: Import web-platform-tests@41d6911b288a9624c249a406b9bf51607a2dd04d (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skip submit-entity-body.html Created 4 years, 7 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 <!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 src="data:text/html;charset=utf-8," 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,
16 'document.timeline returns a different object for each document'); 16 'document.timeline returns a different object for each document');
17 assert_not_equals(iframe.contentDocument.timeline, null, 17 assert_not_equals(iframe.contentDocument.timeline, null,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698