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

Unified Diff: LayoutTests/inspector/elements/styles/styles-add-new-rule-to-stylesheet.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-to-stylesheet.html
diff --git a/LayoutTests/inspector/elements/styles/styles-add-new-rule-to-stylesheet.html b/LayoutTests/inspector/elements/styles/styles-add-new-rule-to-stylesheet.html
deleted file mode 100644
index 6177f9af74d8e91aa11aa206913ef9cdbf4babb2..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/styles-add-new-rule-to-stylesheet.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<script src="styles-test.js"></script>
-<link rel="stylesheet" href="resources/different-rule-types.css">
-<script>
-
-function test()
-{
- InspectorTest.selectNodeAndWaitForStyles("inspect", fetchStyleSheet);
-
- function fetchStyleSheet()
- {
- var styleSheets = InspectorTest.cssModel.allStyleSheets();
- for (var i = 0; i < styleSheets.length; ++i) {
- var styleSheetHeader = styleSheets[i];
- if (styleSheetHeader.sourceURL.indexOf("different-rule-types.css") === -1)
- continue;
- InspectorTest.addNewRuleInStyleSheet(styleSheetHeader, "#other, div", onRuleAdded);
- return;
- }
- }
-
- function onRuleAdded()
- {
- InspectorTest.selectNodeAndWaitForStyles("other", onNodeSelected);
- }
-
- function onNodeSelected()
- {
- InspectorTest.dumpSelectedElementStyles(true, false, true);
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that adding new rule in the stylesheet end works as expected.
-</p>
-
-<div class="inspected">Styled element</div>
-<div id="inspect"></div>
-<div id="other"></div>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698