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

Side by Side Diff: LayoutTests/virtual/stable/web-animations-api/add-keyframes-unsupported.html

Issue 863863004: Implemented additive animations for length (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed AnimationStackTest Created 5 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 <title>Web Animations API: Add Keyframe tests</title> 2 <title>Web Animations API: Add 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: 'NotSupportedError'}, function() { 10 assert_throws({name: 'NotSupportedError'}, function() {
11 div.animate([{height: '100px', composite: 'add'}, {height: '200px', composit e: 'add'}], 1); 11 div.animate([{height: '100px', composite: 'add'}, {height: '200px', composit e: 'add'}], 1);
12 }, 'Add animations should cause an exception.'); 12 }, 'Add animations should cause an exception.');
13 }, 13 },
14 'Add animation tests', 14 'Add animation tests',
15 { 15 {
16 help: 'http://dev.w3.org/fxtf/web-animations/#the-unaccumulated-animation-va lue-of-a-keyframe-animation-effect', 16 help: 'http://dev.w3.org/fxtf/web-animations/#the-unaccumulated-animation-va lue-of-a-keyframe-animation-effect',
17 assert: 'Only keyframes without add compositing considered', 17 assert: 'Only keyframes without add compositing considered',
18 author: 'Shane Stephens' 18 author: 'Shane Stephens'
19 }); 19 });
20 20
21 test(function() { 21 test(function() {
22 assert_throws({name: 'NotSupportedError'}, function() { 22 assert_throws({name: 'NotSupportedError'}, function() {
23 div.animate([{height: '100px'}, {height: '200px', composite: 'add'}], 1); 23 div.animate([{height: '100px'}, {height: '200px', composite: 'add'}], 1);
24 }, 'Animations with add keyframes should cause an exception.'); 24 }, 'Animations with add keyframes should cause an exception.');
25 }, 25 },
26 'Hybrid animation tests', 26 'Hybrid animation tests',
27 { 27 {
28 help: 'http://dev.w3.org/fxtf/web-animations/#the-unaccumulated-animation-va lue-of-a-keyframe-animation-effect', 28 help: 'http://dev.w3.org/fxtf/web-animations/#the-unaccumulated-animation-va lue-of-a-keyframe-animation-effect',
29 assert: 'Only keyframes without add compositing are considered', 29 assert: 'Only keyframes without add compositing are considered',
30 author: 'Shane Stephens' 30 author: 'Shane Stephens'
31 }); 31 });
32 32
33 </script> 33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698