| Index: LayoutTests/animations/animation-events-unprefixed-04.html
|
| diff --git a/LayoutTests/animations/animation-events-unprefixed-04.html b/LayoutTests/animations/animation-events-unprefixed-04.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..09e9136ae132cf8e4a079fa68dea87d63c8135f1
|
| --- /dev/null
|
| +++ b/LayoutTests/animations/animation-events-unprefixed-04.html
|
| @@ -0,0 +1,56 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| + <title>Tests that custom events with unprefixed animations names are correctly dispatched.</title>
|
| + <script>
|
| + if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| + }
|
| +
|
| + document.addEventListener('animationstart', function(e) {
|
| + document.getElementById('result').innerHTML += 'PASS: animationstart event listener has been called.<br>';
|
| + }, false);
|
| +
|
| + document.addEventListener('webkitAnimationStart', function(e) {
|
| + document.getElementById('result').innerHTML += 'FAIL: webkitAnimationStart event listener should not have been called.<br>';
|
| + }, false);
|
| +
|
| + document.addEventListener('animationiteration', function(e) {
|
| + document.getElementById('result').innerHTML += 'PASS: animationiteration event listener has been called.<br>';
|
| + }, false);
|
| +
|
| + document.addEventListener('webkitAnimationIteration', function(e) {
|
| + document.getElementById('result').innerHTML += 'FAIL: webkitAnimationIteration event listener should not have been called.<br>';
|
| + }, false);
|
| +
|
| + document.addEventListener('animationend', function(e) {
|
| + document.getElementById('result').innerHTML += 'PASS: animationend event listener has been called.';
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + }, false);
|
| +
|
| + document.addEventListener('webkitAnimationEnd', function(e) {
|
| + document.getElementById('result').innerHTML += 'FAIL: webkitAnimationEnd event listener should not have been called.';
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + }, false);
|
| +
|
| + </script>
|
| +</head>
|
| +<body>
|
| +Tests that custom events with unprefixed animations names are correctly dispatched.
|
| +<pre id="result"></pre>
|
| +</body>
|
| +<script>
|
| + var custom = document.createEvent('CustomEvent');
|
| + custom.initCustomEvent('animationstart', true, true);
|
| + document.dispatchEvent(custom);
|
| + custom = document.createEvent('CustomEvent');
|
| + custom.initCustomEvent('animationiteration', true, true);
|
| + document.dispatchEvent(custom);
|
| + custom = document.createEvent('CustomEvent');
|
| + custom.initCustomEvent('animationend', true, true);
|
| + document.dispatchEvent(custom);
|
| +</script>
|
| +</html>
|
|
|