Index: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-keyframes-cssom-injected.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-keyframes-cssom-injected.html b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-keyframes-cssom-injected.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5766e8676c2b4fffd9116a2913a3df5d5fe21b9a |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-keyframes-cssom-injected.html |
@@ -0,0 +1,29 @@ |
+<html> |
+<head> |
+<script src="../../../http/tests/inspector/inspector-test.js"></script> |
+<script src="../../../http/tests/inspector/elements-test.js"></script> |
+<style> |
+</style> |
+<script> |
+function injectAnimation() |
+{ |
+ var styleSheet = document.styleSheets[0]; |
+ styleSheet.insertRule("@keyframes injected { 0% {opacity:0} 100% {opacity:1} }", 0); |
+} |
+ |
+function test() |
+{ |
+ InspectorTest.evaluateInPage("injectAnimation()"); |
+ InspectorTest.selectNodeAndWaitForStyles("element", InspectorTest.completeTest.bind(InspectorTest)); |
+} |
+</script> |
+</head> |
+ |
+<body onload="runTest()"> |
+<div id="element" style="animation: injected 1s infinite"></div> |
+<p> |
+Tests that inspecting keyframes injected via CSSOM doesn't crash. |
+</p> |
+ |
+</body> |
+</html> |