| Index: LayoutTests/inspector/elements/styles/undo-add-new-rule.html
|
| diff --git a/LayoutTests/inspector/elements/styles/undo-add-new-rule.html b/LayoutTests/inspector/elements/styles/undo-add-new-rule.html
|
| deleted file mode 100644
|
| index 0ee89c3f97c986396c088afa1b625e572961683f..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/elements/styles/undo-add-new-rule.html
|
| +++ /dev/null
|
| @@ -1,98 +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("inspected", step1);
|
| -
|
| - var treeElement;
|
| -
|
| - function step1()
|
| - {
|
| - addNewRuleAndSelectNode("other", step2);
|
| - }
|
| -
|
| - function step2()
|
| - {
|
| - addNewRuleAndSelectNode("inspected", step3);
|
| - }
|
| -
|
| - function step3()
|
| - {
|
| - InspectorTest.addResult("After adding new rule:");
|
| - InspectorTest.dumpSelectedElementStyles(true, false, true);
|
| - printStyleSheetAndCall(step4);
|
| - }
|
| -
|
| - function step4()
|
| - {
|
| - InspectorTest.domModel.undo();
|
| - InspectorTest.selectNodeAndWaitForStyles("other", step5);
|
| - }
|
| -
|
| - function step5()
|
| - {
|
| - InspectorTest.addResult("After undo:");
|
| - InspectorTest.dumpSelectedElementStyles(true, false, true);
|
| - printStyleSheetAndCall(step6);
|
| - }
|
| -
|
| - function step6()
|
| - {
|
| - InspectorTest.domModel.redo();
|
| - InspectorTest.selectNodeAndWaitForStyles("inspected", step7);
|
| - }
|
| -
|
| - function step7()
|
| - {
|
| - InspectorTest.addResult("After redo:");
|
| - InspectorTest.dumpSelectedElementStyles(true, false, true);
|
| - printStyleSheetAndCall(step8);
|
| - }
|
| -
|
| - function step8()
|
| - {
|
| - InspectorTest.completeTest();
|
| - }
|
| -
|
| - function addNewRuleAndSelectNode(nodeId, next)
|
| - {
|
| - function selectNode()
|
| - {
|
| - InspectorTest.selectNodeAndWaitForStyles(nodeId, next);
|
| - }
|
| -
|
| - InspectorTest.addNewRule("div.foo", selectNode);
|
| - }
|
| -
|
| - function printStyleSheetAndCall(next)
|
| - {
|
| - var section = InspectorTest.firstMatchedStyleSection();
|
| - var id = section.styleRule.style().styleSheetId;
|
| - InspectorTest.CSSAgent.getStyleSheetText(id, callback);
|
| - function callback(result, styleSheetText)
|
| - {
|
| - InspectorTest.addResult("===== Style sheet text: =====");
|
| - InspectorTest.addResult(styleSheetText);
|
| - InspectorTest.addResult("=============================");
|
| - next();
|
| - }
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>
|
| -Tests that adding a new rule can be undone.
|
| -</p>
|
| -
|
| -<div class="foo" id="inspected" style="font-size: 12px">Text</div>
|
| -<div class="foo" id="other" style="color:red"></div>
|
| -
|
| -</body>
|
| -</html>
|
|
|