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

Side by Side Diff: third_party/WebKit/LayoutTests/web-animations-api/w3c/out-of-order-keyframes.html

Issue 1720403002: Alternative syntax for element.animate list of keyframes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@animations-keyframeeffect-api
Patch Set: Additional (mismatched-length-list) test; ensure offset is initialized Created 4 years, 9 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 <title>Web Animations API: Out of order Keyframe tests</title> 2 <title>Web Animations API: Out of order Keyframe tests</title>
3 <script src='../../resources/testharness.js'></script> 3 <script src='../../resources/testharness.js'></script>
4 <script src='../../resources/testharnessreport.js'></script> 4 <script src='../../resources/testharnessreport.js'></script>
5 <div id='log'></div> 5 <div id='log'></div>
6 <div id='div'></div> 6 <div id='div'></div>
7 <script> 7 <script>
8 8
9 test(function() { 9 test(function() {
10 assert_throws({name: 'InvalidModificationError'}, function() { 10 assert_throws({name: 'TypeError'}, function() {
11 div.animate([{height: '100px', offset: 0.5}, {height: '200px', offset: 0}, { height: '300px', offset: 1}], 1); 11 div.animate([{height: '100px', offset: 0.5}, {height: '200px', offset: 0}, { height: '300px', offset: 1}], 1);
12 }, 'Out-of-order properties should not work'); 12 }, 'Out-of-order properties should not work');
13 13
14 assert_throws({name: 'InvalidModificationError'}, function() { 14 assert_throws({name: 'TypeError'}, function() {
15 div.animate([{height: '100px', offset: 0.5}, {height: '150px'}, 15 div.animate([{height: '100px', offset: 0.5}, {height: '150px'},
16 {height: '200px', offset: 0}, {height: '300px', offset: 1}], 1) ; 16 {height: '200px', offset: 0}, {height: '300px', offset: 1}], 1) ;
17 }, 'Auto offsets combined with out-of-order properties should not work'); 17 }, 'Auto offsets combined with out-of-order properties should not work');
18 }, 18 },
19 'Out-of-order Keyframe tests', 19 'Out-of-order Keyframe tests',
20 { 20 {
21 help: 'http://dev.w3.org/fxtf/web-animations/#normalizing-a-sequence-of-keyf rames', 21 help: 'http://dev.w3.org/fxtf/web-animations/#normalizing-a-sequence-of-keyf rames',
22 assert: 'Keyframes with out-of-order offsets should work, unless there are als o auto offsets', 22 assert: 'Keyframes with out-of-order offsets should work, unless there are als o auto offsets',
23 author: 'Shane Stephens' 23 author: 'Shane Stephens'
24 }); 24 });
25 25
26 </script> 26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698