| Index: LayoutTests/inspector/elements/styles/styles-add-new-rule.html
|
| diff --git a/LayoutTests/inspector/elements/styles/styles-add-new-rule.html b/LayoutTests/inspector/elements/styles/styles-add-new-rule.html
|
| deleted file mode 100644
|
| index e0b6c24f67791a5eb4a48d6e80a4852189d67a11..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/elements/styles/styles-add-new-rule.html
|
| +++ /dev/null
|
| @@ -1,119 +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("Enter"));
|
| - textInputController.insertText("maroon");
|
| - newProperty.valueElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
|
| - 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.waitForStylesForClass("my-class", onStylesReceived);
|
| - InspectorTest.nodeWithClass("my-class", onNodeFound);
|
| - function onNodeFound(node)
|
| - {
|
| - WebInspector.Revealer.reveal(node);
|
| - }
|
| -
|
| - function onStylesReceived()
|
| - {
|
| - InspectorTest.addNewRule(null, step6);
|
| - }
|
| - }
|
| -
|
| - function step6()
|
| - {
|
| - InspectorTest.dumpSelectedElementStyles(true, false, true);
|
| -
|
| - InspectorTest.waitForStylesForClass("class-1", onStylesReceived);
|
| - InspectorTest.nodeWithClass("class-1", onNodeFound);
|
| - function onNodeFound(node)
|
| - {
|
| - WebInspector.Revealer.reveal(node);
|
| - }
|
| -
|
| - function onStylesReceived()
|
| - {
|
| - InspectorTest.addNewRule(null, function() {
|
| - 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>
|
| -<div>
|
| - <div class="my-class"></div>
|
| - <div class="my-class"></div>
|
| - <div class="my-class"></div>
|
| -</div>
|
| -
|
| -<div class=" class-1 class-2 class-3 "></div>
|
| -
|
| -</body>
|
| -</html>
|
|
|