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

Unified Diff: LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.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/add-new-rule-with-style-after-body.html
diff --git a/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html b/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html
deleted file mode 100644
index 4c3300e54213d04a29b2a96743982c0bba0b557f..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/add-new-rule-with-style-after-body.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<script>
-function addStyle()
-{
- var style = document.createElement("style");
- document.documentElement.appendChild(style);
- style.sheet.insertRule("foo {display: none;}", 0);
-}
-
-function test()
-{
- InspectorTest.cssModel.addEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, stylesheetAdded);
- InspectorTest.evaluateInPage("addStyle()");
-
- function stylesheetAdded()
- {
- InspectorTest.cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.StyleSheetAdded, stylesheetAdded);
- InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
- }
-
- var treeElement;
- var hasResourceChanged;
-
- function step1()
- {
- InspectorTest.addNewRule("inspected", step2);
- }
-
- function step2()
- {
- var section = InspectorTest.firstMatchedStyleSection();
- var newProperty = section.addNewBlankProperty();
- newProperty.startEditing();
- newProperty.nameElement.textContent = "color";
- newProperty.nameElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
- newProperty.valueElement.textContent = "maroon";
- newProperty.valueElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
- InspectorTest.waitForStyles("inspected", step3);
- }
-
- function step3()
- {
- InspectorTest.addResult("After adding new rule:");
- InspectorTest.dumpSelectedElementStyles(true, false, true);
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that adding a new rule works when there is a STYLE element after BODY. TIMEOUT SHOULD NOT OCCUR! <a href="https://bugs.webkit.org/show_bug.cgi?id=111299">Bug 111299</a>
-</p>
-
-<div id="inspected" style="font-size: 12px">Text</div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698