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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/web-animations/interfaces/KeyframeEffectReadOnly/spacing.html

Issue 2697453005: Import wpt@758b3b4cfa805067f36121333ba031e583d3a62c (Closed)
Patch Set: Add -expected.txt files. Created 3 years, 10 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>KeyframeEffectReadOnly spacing attribute tests</title> 3 <title>KeyframeEffectReadOnly spacing attribute tests</title>
4 <link rel="help" 4 <link rel="help"
5 href="https://w3c.github.io/web-animations/#dom-keyframeeffectreadonly-spacing"> 5 href="https://w3c.github.io/web-animations/#dom-keyframeeffectreadonly-spacing">
6 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharness.js"></script>
7 <script src="/resources/testharnessreport.js"></script> 7 <script src="/resources/testharnessreport.js"></script>
8 <script src="../../testcommon.js"></script> 8 <script src="../../testcommon.js"></script>
9 <body> 9 <body>
10 <div id="log"></div> 10 <div id="log"></div>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 test(function(t) { 52 test(function(t) {
53 assert_throws(new TypeError, function() { 53 assert_throws(new TypeError, function() {
54 createDiv(t).animate(null, { spacing: 'paced()' }); 54 createDiv(t).animate(null, { spacing: 'paced()' });
55 }); 55 });
56 }, 'Test throwing TypeError if these is no paced property'); 56 }, 'Test throwing TypeError if these is no paced property');
57 57
58 test(function(t) { 58 test(function(t) {
59 assert_throws(new TypeError, function() { 59 assert_throws(new TypeError, function() {
60 createDiv(t).animate(null, { spacing: 'paced(.margin)' }); 60 createDiv(t).animate(null, { spacing: 'paced(.margin)' });
61 }); 61 });
62 }, 'Test throwing TypeError if using a non-ident started string'); 62 }, 'Test throwing TypeError if using a non-ident started string with ' +
63 'a period');
63 64
64 test(function(t) { 65 test(function(t) {
65 assert_throws(new TypeError, function() { 66 assert_throws(new TypeError, function() {
66 createDiv(t).animate(null, { spacing: 'paced(1margin)' }); 67 createDiv(t).animate(null, { spacing: 'paced(1margin)' });
67 }); 68 });
68 }, 'Test throwing TypeError if using a non-ident started string'); 69 }, 'Test throwing TypeError if using a non-ident started string with ' +
70 'a number');
69 71
70 test(function(t) { 72 test(function(t) {
71 assert_throws(new TypeError, function() { 73 assert_throws(new TypeError, function() {
72 createDiv(t).animate(null, { spacing: 'paced(\\)' }); 74 createDiv(t).animate(null, { spacing: 'paced(\\)' });
73 }); 75 });
74 }, 'Test throwing TypeError if using a non-ident started string with ' + 76 }, 'Test throwing TypeError if using a non-ident started string with ' +
75 'an invalid escape'); 77 'an invalid escape');
76 78
77 test(function(t) { 79 test(function(t) {
78 assert_throws(new TypeError, function() { 80 assert_throws(new TypeError, function() {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 assert_equals(anim.effect.spacing, 'distribute', 'spacing mode'); 230 assert_equals(anim.effect.spacing, 'distribute', 'spacing mode');
229 }, 'Test spacing value if setting distribute'); 231 }, 'Test spacing value if setting distribute');
230 232
231 test(function(t) { 233 test(function(t) {
232 var anim = createDiv(t).animate(null, { spacing: 'paced(margin-left)' }); 234 var anim = createDiv(t).animate(null, { spacing: 'paced(margin-left)' });
233 assert_equals(anim.effect.spacing, 'paced(margin-left)', 'spacing mode'); 235 assert_equals(anim.effect.spacing, 'paced(margin-left)', 'spacing mode');
234 }, 'Test spacing value if setting paced'); 236 }, 'Test spacing value if setting paced');
235 237
236 </script> 238 </script>
237 </body> 239 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698