Index: LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.html |
diff --git a/LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.html b/LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.html |
deleted file mode 100644 |
index a26bd11182e8616adf6d75f451790cc84052c1f7..0000000000000000000000000000000000000000 |
--- a/LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.html |
+++ /dev/null |
@@ -1,82 +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() |
-{ |
- if (!window.eventSender || !window.textInputController) { |
- document.write("This test does not work in manual mode."); |
- InspectorTest.completeTest(); |
- return; |
- } |
- |
- InspectorTest.selectNodeAndWaitForStyles("inspected", step1); |
- InspectorTest.addSniffer(WebInspector.UISourceCode.prototype, "addRevision", revisionAdded); |
- |
- var treeElement; |
- var hasResourceChanged; |
- |
- function step1() |
- { |
- // Click "Add new rule". |
- InspectorTest.addNewRule("foo, div#inspected, bar", step2); |
- } |
- |
- function step2() |
- { |
- var section = InspectorTest.firstMatchedStyleSection(); |
- var newProperty = section.addNewBlankProperty(); |
- newProperty.startEditing(); |
- textInputController.insertText("color"); |
- newProperty.nameElement.dispatchEvent(InspectorTest.createKeyEvent("U+0009")); // Tab |
- textInputController.insertText("maroon"); |
- newProperty.valueElement.dispatchEvent(InspectorTest.createKeyEvent("U+0009")); // Tab |
- InspectorTest.selectNodeAndWaitForStyles("other", step3); |
- } |
- |
- function step3() |
- { |
- // Click "Add new rule". |
- InspectorTest.addNewRule(null, onRuleAdded); |
- |
- function onRuleAdded() |
- { |
- InspectorTest.selectNodeAndWaitForStyles("inspected", step4); |
- } |
- } |
- |
- function step4() |
- { |
- InspectorTest.addResult("After adding new rule (inspected):"); |
- InspectorTest.dumpSelectedElementStyles(true, false, true, true); |
- InspectorTest.selectNodeAndWaitForStyles("other", step5); |
- } |
- |
- function step5() |
- { |
- InspectorTest.addResult("After adding new rule (other):"); |
- InspectorTest.dumpSelectedElementStyles(true, false, true); |
- InspectorTest.completeTest(); |
- } |
- |
- function revisionAdded(revision) |
- { |
- InspectorTest.addResult("Revision added: " + this.displayName()); |
- } |
-} |
- |
-</script> |
-</head> |
- |
-<body onload="runTest()"> |
-<p> |
-Tests that adding a new rule works after switching nodes. |
-</p> |
- |
-<div id="inspected" style="font-size: 12px">Text</div> |
-<div id="other" style="color:red"></div> |
- |
-</body> |
-</html> |