OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 #inspected:before { | 4 #inspected:before { |
5 content: "BEFORE"; | 5 content: "BEFORE"; |
6 } | 6 } |
7 | 7 |
8 #inspected:after { | 8 #inspected:after { |
9 content: "AFTER"; | 9 content: "AFTER"; |
10 } | 10 } |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 ]); | 187 ]); |
188 | 188 |
189 function executeAndDumpTree(pageFunction, eventName, next) | 189 function executeAndDumpTree(pageFunction, eventName, next) |
190 { | 190 { |
191 WebInspector.domModel.addEventListener(eventName, domCallback, this); | 191 WebInspector.domModel.addEventListener(eventName, domCallback, this); |
192 InspectorTest.evaluateInPage(pageFunction); | 192 InspectorTest.evaluateInPage(pageFunction); |
193 | 193 |
194 function domCallback() | 194 function domCallback() |
195 { | 195 { |
196 WebInspector.domModel.removeEventListener(eventName, domCallback, th
is); | 196 WebInspector.domModel.removeEventListener(eventName, domCallback, th
is); |
197 WebInspector.inspectorView.panel("elements").treeOutline.addEventLis
tener(WebInspector.ElementsTreeOutline.Events.ElementsTreeUpdated, treeCallback,
this); | 197 InspectorTest.firstElementsTreeOutline().addEventListener(WebInspect
or.ElementsTreeOutline.Events.ElementsTreeUpdated, treeCallback, this); |
198 } | 198 } |
199 | 199 |
200 function treeCallback() | 200 function treeCallback() |
201 { | 201 { |
202 WebInspector.inspectorView.panel("elements").treeOutline.removeEvent
Listener(WebInspector.ElementsTreeOutline.Events.ElementsTreeUpdated, treeCallba
ck, this); | 202 InspectorTest.firstElementsTreeOutline().removeEventListener(WebInsp
ector.ElementsTreeOutline.Events.ElementsTreeUpdated, treeCallback, this); |
203 InspectorTest.dumpElementsTree(containerNode); | 203 InspectorTest.dumpElementsTree(containerNode); |
204 next(); | 204 next(); |
205 } | 205 } |
206 } | 206 } |
207 | 207 |
208 function selectNodeAndDumpStyles(id, pseudoTypeName, callback) | 208 function selectNodeAndDumpStyles(id, pseudoTypeName, callback) |
209 { | 209 { |
210 if (pseudoTypeName) | 210 if (pseudoTypeName) |
211 InspectorTest.selectPseudoIdNodeAndWaitForStyles("inspected", pseudo
TypeName, stylesCallback); | 211 InspectorTest.selectPseudoIdNodeAndWaitForStyles("inspected", pseudo
TypeName, stylesCallback); |
212 else | 212 else |
(...skipping 15 matching lines...) Expand all Loading... |
228 Tests that pseudo elements and their styles are handled properly. | 228 Tests that pseudo elements and their styles are handled properly. |
229 </p> | 229 </p> |
230 | 230 |
231 <div id="container"> | 231 <div id="container"> |
232 <div id="inspected">Text</div> | 232 <div id="inspected">Text</div> |
233 <div id="empty"></div> | 233 <div id="empty"></div> |
234 </div> | 234 </div> |
235 | 235 |
236 </body> | 236 </body> |
237 </html> | 237 </html> |
OLD | NEW |