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

Unified Diff: LayoutTests/inspector/elements/styles/cssom-media-insert-crash.html

Issue 1158883003: DevTools: shard inspector/elements tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
Index: LayoutTests/inspector/elements/styles/cssom-media-insert-crash.html
diff --git a/LayoutTests/inspector/elements/styles/cssom-media-insert-crash.html b/LayoutTests/inspector/elements/styles/cssom-media-insert-crash.html
deleted file mode 100644
index 007328cb6c28c566dded35996e3660194d87da1f..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/cssom-media-insert-crash.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<script>
-
-function test()
-{
- InspectorTest.selectNodeAndWaitForStyles("box", step1);
-
- function step1()
- {
- InspectorTest.dumpSelectedElementStyles(true, false, true, false);
- InspectorTest.completeTest();
- }
-}
-
-</script>
-<style>
-div {
- border: 1px solid black;
- background-color: white;
- padding: 20px;
-}
-</style>
-</head>
-
-<body onload="runTest()">
-Tests that the inspected page does not crash after inspecting element with CSSOM added rules. <a href="http://crbug.com/373508">Bug 373508</a>
-<div id="box">Inspecting this element crashes DevTools</div>
-<script>
-var lastSheet = document.styleSheets[document.styleSheets.length - 1];
-var mediaIndex = lastSheet.insertRule('@media all { }', lastSheet.cssRules.length);
-var mediaRule = lastSheet.cssRules[mediaIndex];
-mediaRule.insertRule('#box { background: red; color: white; }', mediaRule.cssRules.length);
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698