| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 5 <style> |
| 6 </style> |
| 7 <script> |
| 8 function injectAnimation() |
| 9 { |
| 10 var styleSheet = document.styleSheets[0]; |
| 11 styleSheet.insertRule("@keyframes injected { 0% {opacity:0} 100% {opacity:1}
}", 0); |
| 12 } |
| 13 |
| 14 function test() |
| 15 { |
| 16 InspectorTest.evaluateInPage("injectAnimation()"); |
| 17 InspectorTest.selectNodeAndWaitForStyles("element", InspectorTest.completeTe
st.bind(InspectorTest)); |
| 18 } |
| 19 </script> |
| 20 </head> |
| 21 |
| 22 <body onload="runTest()"> |
| 23 <div id="element" style="animation: injected 1s infinite"></div> |
| 24 <p> |
| 25 Tests that inspecting keyframes injected via CSSOM doesn't crash. |
| 26 </p> |
| 27 |
| 28 </body> |
| 29 </html> |
| OLD | NEW |