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

Unified Diff: LayoutTests/inspector/elements/styles/filter-matched-styles-hides-separators.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/filter-matched-styles-hides-separators.html
diff --git a/LayoutTests/inspector/elements/styles/filter-matched-styles-hides-separators.html b/LayoutTests/inspector/elements/styles/filter-matched-styles-hides-separators.html
deleted file mode 100644
index ea6844b768087f3fcb3db52f5bc70024bbf06485..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/elements/styles/filter-matched-styles-hides-separators.html
+++ /dev/null
@@ -1,89 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/elements-test.js"></script>
-<style>
-#first {
- font-family: arial;
- display: block;
-}
-
-#second {
- font-family: helvetica;
-}
-
-#third {
- font-family: times;
- display: block;
-}
-
-#third::before {
- content: "uno-1";
-}
-
-#third::after {
- content: "dos-2";
- display: block;
-}
-
-</style>
-<script>
-function test()
-{
- InspectorTest.runTestSuite([
- function selectInitialNode(next)
- {
- InspectorTest.selectNodeAndWaitForStyles("third", next);
- },
-
- function onNodeSelected(next)
- {
- InspectorTest.dumpRenderedMatchedStyles();
- next();
- },
-
- function testFilterFontFamily(next)
- {
- InspectorTest.filterMatchedStyles("font-family");
- dumpSidebarSeparators();
- next();
- },
-
- function testContentProperty(next)
- {
- InspectorTest.filterMatchedStyles("content");
- dumpSidebarSeparators();
- next();
- },
-
- function testDisplayProperty(next)
- {
- InspectorTest.filterMatchedStyles("display");
- dumpSidebarSeparators();
- next();
- }
- ]);
-
- function dumpSidebarSeparators()
- {
- var separators = WebInspector.panels.elements.sidebarPanes.styles.element.querySelectorAll(".sidebar-separator");
- for (var i = 0; i < separators.length; ++i) {
- var separator = separators[i];
- var hidden = separator.classList.contains("hidden");
- var text = String.sprintf("%s %s", hidden ? "[ HIDDEN ] " : "[ VISIBLE ]", separator.deepTextContent());
- InspectorTest.addResult(text);
- }
- }
-}
-</script>
-</head>
-<body onload="runTest()">
-<p>Verifies that filtering in StylesSidebarPane hides sidebar separators.</p>
-<div id="first">
- <div id="second">
- <div id="third">
- </div>
- </div>
-</div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698