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

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

Issue 2141853002: Delete test and move code to new file startTime.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: copy test over 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 | « third_party/WebKit/LayoutTests/web-animations-api/player-unresolved-times.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <title>Animation.startTime tests</title>
4 <link rel="help"
5 href="https://w3c.github.io/web-animations/#dom-animation-starttime">
6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script>
8 <script src="../../testcommon.js"></script>
suzyh_UTC10 (ex-contributor) 2016/07/12 03:26:07 In order to make this test run successfully and pa
nainar 2016/07/12 05:11:00 Done.
9 <link rel="stylesheet" href="/resources/testharness.css">
10 <body>
11 <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>
12 <div id="log"></div>
13 <script>
14 'use strict';
15
16 test(function(t) {
17 var animation = new Animation(new KeyframeEffect(createDiv(t), null),
18 document.timeline);
19 assert_equals(animation.startTime, null, 'startTime is unresolved');
20 }, 'startTime of a newly created (idle) animation is unresolved');
21
22 test(function(t) {
23 var animation = new Animation(new KeyframeEffect(createDiv(t), null),
24 document.timeline);
25 animation.play();
26 assert_equals(animation.startTime, null, 'startTime is unresolved');
27 }, 'startTime of a play-pending animation is unresolved');
28
29 test(function(t) {
30 var animation = new Animation(new KeyframeEffect(createDiv(t), null),
31 document.timeline);
32 animation.pause();
33 assert_equals(animation.startTime, null, 'startTime is unresolved');
34 }, 'startTime of a pause-pending animation is unresolved');
35
36 test(function(t) {
37 var animation = createDiv(t).animate(null);
38 assert_equals(animation.startTime, null, 'startTime is unresolved');
39 }, 'startTime of a play-pending animation created using Element.animate'
40 + ' shortcut is unresolved');
41
42 // Added test
43 test(function() {
44 var animation = document.documentElement.animate([], 100000);
45 animation.cancel();
46 assert_unresolved(player.startTime);
47 assert_unresolved(player.currentTime);
48 }, "unresolved startTime and currentTime");
suzyh_UTC10 (ex-contributor) 2016/07/12 03:26:07 Please give this test a more descriptive name in l
nainar 2016/07/12 05:11:00 Done.
49
50 promise_test(function(t) {
51 var animation = createDiv(t).animate(null, 100 * MS_PER_SEC);
52 return animation.ready.then(function() {
53 assert_greater_than(animation.startTime, 0, 'startTime when running');
54 });
55 }, 'startTime is resolved when running');
56
57 </script>
58 </body>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/web-animations-api/player-unresolved-times.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698