OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <title>Web Animations API: Add Keyframe tests</title> |
| 3 <script src="testharness/testharness.js"></script> |
| 4 <script src="testharness/testharnessreport.js"></script> |
| 5 <div id='log'></div> |
| 6 <div id='div'></div> |
| 7 <script> |
| 8 |
| 9 test(function() { |
| 10 assert_throws({name: 'NotSupportedError'}, function() { |
| 11 div.animate([{height: '100px', composite: 'add'}, {height: '200px', composit
e: 'add'}], 1); |
| 12 }, 'Add animations should cause an exception.'); |
| 13 }, |
| 14 'Add animation tests', |
| 15 { |
| 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', |
| 18 author: 'Shane Stephens' |
| 19 }); |
| 20 |
| 21 test(function() { |
| 22 assert_throws({name: 'NotSupportedError'}, function() { |
| 23 div.animate([{height: '100px'}, {height: '200px', composite: 'add'}], 1); |
| 24 }, 'Animations with add keyframes should cause an exception.'); |
| 25 }, |
| 26 'Hybrid animation tests', |
| 27 { |
| 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', |
| 30 author: 'Shane Stephens' |
| 31 }); |
| 32 |
| 33 </script> |
OLD | NEW |