Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Unified Diff: LayoutTests/inspector/elements/styles/undo-add-new-rule.html

Issue 1158883003: DevTools: shard inspector/elements tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698