Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(870)

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-keyframes-cssom-injected.html

Issue 1697973002: Devtools: Fix crash when inspecting keyframes injected via CSSOM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-keyframes-cssom-injected-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-keyframes-cssom-injected-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698