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

Side by Side Diff: third_party/WebKit/LayoutTests/web-animations-api/w3c/keyframes-with-null-offsets.html

Issue 2910883002: Clean up duplicate tests in web-animations-api (Closed)
Patch Set: Rebase and remove one more reference to deleted test Created 3 years, 6 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
(Empty)
1 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <title>Test keyframes with null offsets</title>
4 <link rel="help" ­href="https://w3c.github.io/web-animations/#keyframes-section" >
5
6 <script src="../../resources/testharness.js"></script>
7 <script src="../../resources/testharnessreport.js"></script>
8 <script src="resources/keyframes-test.js"></script>
9 <script>
10 test(function() {
11 assertAnimationStyles([
12 {opacity: '0.5', left: '50px'},
13 {opacity: '0', left: '0px', offset: null},
14 {opacity: '0.75', left: '75px', offset: null},
15 ], {
16 0: {opacity: '0.5', left: '50px'},
17 0.25: {opacity: '0.25', left: '25px'},
18 0.5: {opacity: '0', left: '0px'},
19 0.75: {opacity: '0.375', left: '37.5px'},
20 1: {opacity: '0.75', left: '75px'},
21 }, 'Null and missing offsets behave identically');
22 assertAnimationStyles([
23 {opacity: '0.5', left: '50px', offset: null},
24 {opacity: '0', left: '0px', offset: 0.25},
25 {opacity: '0.75', left: '75px', offset: null},
26 ], {
27 0: {opacity: '0.5', left: '50px'},
28 0.125: {opacity: '0.25', left: '25px'},
29 0.25: {opacity: '0', left: '0px'},
30 0.5: {opacity: '0.25', left: '25px'},
31 0.75: {opacity: '0.5', left: '50px'},
32 1: {opacity: '0.75', left: '75px'},
33 }, 'Null and explicit offsets behave as with missing and explicit offsets.');
34 },
35 'element.animate() with null offsets specified',
36 {
37 help: 'http://dev.w3.org/fxtf/web-animations/#the-keyframe-dictionary',
38 assert: [
39 'element.animate() should start an animation when keyframes are specified wi th',
40 'null offsets. The behaviour should be identical to not specifying the offse ts.',
41 ],
42 author: 'Alan Cutter',
43 });
44 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698