| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |