Files
DiceCloud/rpg-docs/public/bower_components/web-animations-next/test/blink/add-keyframes.html
2014-11-26 10:18:35 +00:00

34 lines
1.1 KiB
HTML

<!doctype html>
<title>Web Animations API: Add Keyframe tests</title>
<script src="testharness/testharness.js"></script>
<script src="testharness/testharnessreport.js"></script>
<div id='log'></div>
<div id='div'></div>
<script>
test(function() {
assert_throws({name: 'NotSupportedError'}, function() {
div.animate([{height: '100px', composite: 'add'}, {height: '200px', composite: 'add'}], 1);
}, 'Add animations should cause an exception.');
},
'Add animation tests',
{
help: 'http://dev.w3.org/fxtf/web-animations/#the-unaccumulated-animation-value-of-a-keyframe-animation-effect',
assert: 'Only keyframes without add compositing considered',
author: 'Shane Stephens'
});
test(function() {
assert_throws({name: 'NotSupportedError'}, function() {
div.animate([{height: '100px'}, {height: '200px', composite: 'add'}], 1);
}, 'Animations with add keyframes should cause an exception.');
},
'Hybrid animation tests',
{
help: 'http://dev.w3.org/fxtf/web-animations/#the-unaccumulated-animation-value-of-a-keyframe-animation-effect',
assert: 'Only keyframes without add compositing are considered',
author: 'Shane Stephens'
});
</script>