Index: LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html |
diff --git a/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html b/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html |
deleted file mode 100644 |
index 4c3300e54213d04a29b2a96743982c0bba0b557f..0000000000000000000000000000000000000000 |
--- a/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html |
+++ /dev/null |
@@ -1,63 +0,0 @@ |
-<html> |
-<head> |
-<script src="../../../http/tests/inspector/inspector-test.js"></script> |
-<script src="../../../http/tests/inspector/elements-test.js"></script> |
-<script> |
-function addStyle() |
-{ |
- var style = document.createElement("style"); |
- document.documentElement.appendChild(style); |
- style.sheet.insertRule("foo {display: none;}", 0); |
-} |
- |
-function test() |
-{ |
- InspectorTest.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, stylesheetAdded); |
- InspectorTest.evaluateInPage("addStyle()"); |
- |
- function stylesheetAdded() |
- { |
- InspectorTest.cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, stylesheetAdded); |
- InspectorTest.selectNodeAndWaitForStyles("inspected", step1); |
- } |
- |
- var treeElement; |
- var hasResourceChanged; |
- |
- function step1() |
- { |
- InspectorTest.addNewRule("inspected", step2); |
- } |
- |
- function step2() |
- { |
- var section = InspectorTest.firstMatchedStyleSection(); |
- var newProperty = section.addNewBlankProperty(); |
- newProperty.startEditing(); |
- newProperty.nameElement.textContent = "color"; |
- newProperty.nameElement.dispatchEvent(InspectorTest.createKeyEvent("Enter")); |
- newProperty.valueElement.textContent = "maroon"; |
- newProperty.valueElement.dispatchEvent(InspectorTest.createKeyEvent("Enter")); |
- InspectorTest.waitForStyles("inspected", step3); |
- } |
- |
- function step3() |
- { |
- InspectorTest.addResult("After adding new rule:"); |
- InspectorTest.dumpSelectedElementStyles(true, false, true); |
- InspectorTest.completeTest(); |
- } |
-} |
- |
-</script> |
-</head> |
- |
-<body onload="runTest()"> |
-<p> |
-Tests that adding a new rule works when there is a STYLE element after BODY. TIMEOUT SHOULD NOT OCCUR! <a href="https://bugs.webkit.org/show_bug.cgi?id=111299">Bug 111299</a> |
-</p> |
- |
-<div id="inspected" style="font-size: 12px">Text</div> |
- |
-</body> |
-</html> |