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

Side by Side Diff: LayoutTests/inspector/elements/styles/styles-update-from-js.html

Issue 218703002: DevTools: [wip] move Elements panel off WebInspector.domModel and single tree outline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comment addressed (and much more) Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 .red div:first-child { 4 .red div:first-child {
5 background-color: red; 5 background-color: red;
6 } 6 }
7 7
8 div[foo="bar"] + div { 8 div[foo="bar"] + div {
9 background-color: blue; 9 background-color: blue;
10 } 10 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 if (!treeElement) { 106 if (!treeElement) {
107 InspectorTest.addResult("'" + id + "' tree element not found"); 107 InspectorTest.addResult("'" + id + "' tree element not found");
108 return; 108 return;
109 } 109 }
110 InspectorTest.addResult(treeElement.listItemElement.textContent.replace( /\u200b/g, "")); 110 InspectorTest.addResult(treeElement.listItemElement.textContent.replace( /\u200b/g, ""));
111 InspectorTest.dumpSelectedElementStyles(true); 111 InspectorTest.dumpSelectedElementStyles(true);
112 } 112 }
113 113
114 function findNodeTreeElement(id) 114 function findNodeTreeElement(id)
115 { 115 {
116 WebInspector.panels.elements.treeOutline._updateModifiedNodes(); 116 InspectorTest.firstElementsTreeOutline()._updateModifiedNodes();
117 var expandedNode = InspectorTest.expandedNodeWithId(id); 117 var expandedNode = InspectorTest.expandedNodeWithId(id);
118 if (!expandedNode) { 118 if (!expandedNode) {
119 InspectorTest.addResult("'" + id + "' node not found"); 119 InspectorTest.addResult("'" + id + "' node not found");
120 InspectorTest.completeTest(); 120 InspectorTest.completeTest();
121 } 121 }
122 return WebInspector.panels.elements.treeOutline.findTreeElement(expanded Node); 122 return InspectorTest.firstElementsTreeOutline().findTreeElement(expanded Node);
123 } 123 }
124 } 124 }
125 </script> 125 </script>
126 </head> 126 </head>
127 127
128 <body onload="runTest()"> 128 <body onload="runTest()">
129 <p> 129 <p>
130 Tests that changes to an inline style and ancestor/sibling className from JavaSc ript are reflected in the Styles pane and Elements tree. 130 Tests that changes to an inline style and ancestor/sibling className from JavaSc ript are reflected in the Styles pane and Elements tree.
131 </p> 131 </p>
132 132
133 <div id="container" style="font-weight:bold"><div id="child"></div><div id="chil dSibling"></div></div> 133 <div id="container" style="font-weight:bold"><div id="child"></div><div id="chil dSibling"></div></div>
134 134
135 </body> 135 </body>
136 </html> 136 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698