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

Unified Diff: LayoutTests/inspector/elements/styles/styles-add-new-rule-tab.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/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>

Powered by Google App Engine
This is Rietveld 408576698