| 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>
|
|
|