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

Unified Diff: LayoutTests/inspector/elements/styles/styles-add-new-rule-colon.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-colon.html
diff --git a/LayoutTests/inspector/elements/styles/styles-add-new-rule-colon.html b/LayoutTests/inspector/elements/styles/styles-add-new-rule-colon.html
deleted file mode 100644
index 402239ba8d1344acdfe7a101b291b363094949bc..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/styles-add-new-rule-colon.html
+++ /dev/null
@@ -1,84 +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()
- {
- InspectorTest.addNewRule("foo, div#inspected, bar", step2);
- }
-
- function step2()
- {
- var section = InspectorTest.firstMatchedStyleSection();
- var newProperty = section.addNewBlankProperty();
- newProperty.startEditing();
- textInputController.insertText("color");
- eventSender.keyDown(":");
- textInputController.insertText("maroon");
- InspectorTest.waitForStyleApplied(step3);
- eventSender.keyDown(";");
- }
-
- function step3() {
- InspectorTest.selectNodeAndWaitForStyles("other", step4);
- }
-
- function step4()
- {
- InspectorTest.addNewRule(null, onRuleAdded);
-
- function onRuleAdded()
- {
- InspectorTest.selectNodeAndWaitForStyles("inspected", step5);
- }
- }
-
- function step5()
- {
- InspectorTest.addResult("After adding new rule (inspected):");
- InspectorTest.dumpSelectedElementStyles(true, false, true, true);
- InspectorTest.selectNodeAndWaitForStyles("other", step6);
- }
-
- function step6()
- {
- 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