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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-2/filter-matched-styles-hides-separators.html

Issue 2927573004: DevTools: migrate StylesSidebarPane to shadow (Closed)
Patch Set: with similarity 10 Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/elements-test.js"></script> 4 <script src="../../../http/tests/inspector/elements-test.js"></script>
5 <style> 5 <style>
6 #first { 6 #first {
7 font-family: arial; 7 font-family: arial;
8 display: block; 8 display: block;
9 } 9 }
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 function testDisplayProperty(next) 59 function testDisplayProperty(next)
60 { 60 {
61 InspectorTest.filterMatchedStyles("display"); 61 InspectorTest.filterMatchedStyles("display");
62 dumpSidebarSeparators(); 62 dumpSidebarSeparators();
63 next(); 63 next();
64 } 64 }
65 ]); 65 ]);
66 66
67 function dumpSidebarSeparators() 67 function dumpSidebarSeparators()
68 { 68 {
69 var separators = UI.panels.elements._stylesWidget.element.querySelectorA ll(".sidebar-separator"); 69 var separators = UI.panels.elements._stylesWidget.contentElement.querySe lectorAll(".sidebar-separator");
70 for (var i = 0; i < separators.length; ++i) { 70 for (var i = 0; i < separators.length; ++i) {
71 var separator = separators[i]; 71 var separator = separators[i];
72 var hidden = separator.classList.contains("hidden"); 72 var hidden = separator.classList.contains("hidden");
73 var text = String.sprintf("%s %s", hidden ? "[ HIDDEN ] " : "[ VISIB LE ]", separator.deepTextContent()); 73 var text = String.sprintf("%s %s", hidden ? "[ HIDDEN ] " : "[ VISIB LE ]", separator.deepTextContent());
74 InspectorTest.addResult(text); 74 InspectorTest.addResult(text);
75 } 75 }
76 } 76 }
77 } 77 }
78 </script> 78 </script>
79 </head> 79 </head>
80 <body onload="runTest()"> 80 <body onload="runTest()">
81 <p>Verifies that filtering in StylesSidebarPane hides sidebar separators.</p> 81 <p>Verifies that filtering in StylesSidebarPane hides sidebar separators.</p>
82 <div id="first"> 82 <div id="first">
83 <div id="second"> 83 <div id="second">
84 <div id="third"> 84 <div id="third">
85 </div> 85 </div>
86 </div> 86 </div>
87 </div> 87 </div>
88 </body> 88 </body>
89 </html> 89 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698