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

Side by Side Diff: third_party/WebKit/LayoutTests/web-animations-api/startTime.html

Issue 2147643003: Replace undefined assert_undefined function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/web-animations-api/startTime-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>Animation.startTime tests</title> 3 <title>Animation.startTime tests</title>
4 <link rel="help" href="https://w3c.github.io/web-animations/#dom-animation-start time"> 4 <link rel="help" href="https://w3c.github.io/web-animations/#dom-animation-start time">
5 <script src="../resources/testharness.js"></script> 5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script> 6 <script src="../resources/testharnessreport.js"></script>
7 <script src="../imported/wpt/web-animations/testcommon.js"></script> 7 <script src="../imported/wpt/web-animations/testcommon.js"></script>
8 <link rel="stylesheet" href="../resources/testharness.css"> 8 <link rel="stylesheet" href="../resources/testharness.css">
9 <body> 9 <body>
10 <div>This test is a copy of LayoutTests/imported/wpt/web-animations/interfaces/A nimation/startTime.html. Make sure to upstream this to the w3c test suite as it contains an added test that would fit well there.</div> 10 <div>This test is a copy of LayoutTests/imported/wpt/web-animations/interfaces/A nimation/startTime.html. Make sure to upstream this to the w3c test suite as it contains an added test that would fit well there.</div>
(...skipping 30 matching lines...) Expand all
41 promise_test(function(t) { 41 promise_test(function(t) {
42 var animation = createDiv(t).animate(null, 100 * MS_PER_SEC); 42 var animation = createDiv(t).animate(null, 100 * MS_PER_SEC);
43 return animation.ready.then(function() { 43 return animation.ready.then(function() {
44 assert_greater_than(animation.startTime, 0, 'startTime when running'); 44 assert_greater_than(animation.startTime, 0, 'startTime when running');
45 }); 45 });
46 }, 'startTime is resolved when running'); 46 }, 'startTime is resolved when running');
47 47
48 test(function() { 48 test(function() {
49 var player = document.documentElement.animate([], 100000); 49 var player = document.documentElement.animate([], 100000);
50 player.cancel(); 50 player.cancel();
51 assert_unresolved(player.startTime); 51 assert_equals(player.startTime, null);
52 assert_unresolved(player.currentTime); 52 assert_equals(player.currentTime, null);
53 }, "startTime and currentTime are unresolved when animation is cancelled"); 53 }, "startTime and currentTime are unresolved when animation is cancelled");
54 54
55 </script> 55 </script>
56 </body> 56 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/web-animations-api/startTime-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698