mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
web animation updates
This commit is contained in:
33
scripts/vendor/web-animations-js/test/blink/add-keyframes.html
vendored
Executable file
33
scripts/vendor/web-animations-js/test/blink/add-keyframes.html
vendored
Executable file
@ -0,0 +1,33 @@
|
||||
<!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>
|
Reference in New Issue
Block a user