Index: LayoutTests/animations/empty-keyframe-animation.html |
diff --git a/LayoutTests/animations/empty-keyframe-animation.html b/LayoutTests/animations/empty-keyframe-animation.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cacd8c80fd7504b197fbeb2a78029781d3ea22cf |
--- /dev/null |
+++ b/LayoutTests/animations/empty-keyframe-animation.html |
@@ -0,0 +1,50 @@ |
+<!DOCTYPE html> |
+<style> |
+#test1 { |
+ -webkit-animation-fill-mode: forwards; |
+ -webkit-animation-duration: 1s; |
+ -webkit-animation-name: green; |
+} |
+#test2 { |
+ -webkit-animation-fill-mode: forwards; |
+ -webkit-animation-duration: 1s; |
+} |
+#test3 { |
+ -webkit-animation-fill-mode: forwards; |
+ -webkit-animation-duration: 1s; |
+ -webkit-animation-name: empty; |
+} |
+@-webkit-keyframes green { |
+ from { |
+ background-color: white; |
+ } |
+ to { |
+ background-color: green; |
+ } |
+} |
+@-webkit-keyframes empty { |
+} |
+</style> |
+Tests that an animation with no keyframes does not start. |
+<div id="result">FAIL - nothing happened</div> |
+<div id="test1"></div> |
+<div id="test2"></div> |
+<div id="test3"></div> |
+<script> |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
Steve Block
2013/05/06 01:49:06
I know there are lots of places where this isn't f
dstockwell
2013/05/06 04:01:00
Done.
|
+ testRunner.waitUntilDone(); |
+} |
+var pass = true; |
+test1.addEventListener('webkitAnimationStart', function() { |
+ test2.style.webkitAnimationName = 'green'; |
+}); |
+test2.addEventListener('webkitAnimationStart', function() { |
+ result.innerText = pass ? 'PASS' : 'FAIL'; |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+}); |
+test3.addEventListener('webkitAnimationStart', function() { |
+ pass = false; |
+}); |
+</script> |