| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 #inspected:before, .some-other-selector { | 4 #inspected:before, .some-other-selector { |
| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 executeAndDumpTree("modifyTextContent()", WebInspector.DOMModel.Even
ts.NodeInserted, next); | 165 executeAndDumpTree("modifyTextContent()", WebInspector.DOMModel.Even
ts.NodeInserted, next); |
| 166 }, | 166 }, |
| 167 | 167 |
| 168 function clearTextContent(next) | 168 function clearTextContent(next) |
| 169 { | 169 { |
| 170 executeAndDumpTree("clearTextContent()", WebInspector.DOMModel.Event
s.NodeRemoved, next); | 170 executeAndDumpTree("clearTextContent()", WebInspector.DOMModel.Event
s.NodeRemoved, next); |
| 171 }, | 171 }, |
| 172 | 172 |
| 173 function removeNodeAndCheckPseudoElementsUnbound(next) | 173 function removeNodeAndCheckPseudoElementsUnbound(next) |
| 174 { | 174 { |
| 175 var inspectedBefore = inspectedNode.pseudoElements()["before"]; | 175 var inspectedBefore = inspectedNode.beforePseudoElement(); |
| 176 var inspectedAfter = inspectedNode.pseudoElements()["after"]; | 176 var inspectedAfter = inspectedNode.afterPseudoElement(); |
| 177 | 177 |
| 178 executeAndDumpTree("removeNode()", WebInspector.DOMModel.Events.Node
Removed, callback); | 178 executeAndDumpTree("removeNode()", WebInspector.DOMModel.Events.Node
Removed, callback); |
| 179 function callback() | 179 function callback() |
| 180 { | 180 { |
| 181 InspectorTest.addResult("inspected:before DOMNode in DOMAgent: "
+ !!(WebInspector.domModel.nodeForId(inspectedBefore.id))); | 181 InspectorTest.addResult("inspected:before DOMNode in DOMAgent: "
+ !!(WebInspector.domModel.nodeForId(inspectedBefore.id))); |
| 182 InspectorTest.addResult("inspected:after DOMNode in DOMAgent: "
+ !!(WebInspector.domModel.nodeForId(inspectedAfter.id))); | 182 InspectorTest.addResult("inspected:after DOMNode in DOMAgent: "
+ !!(WebInspector.domModel.nodeForId(inspectedAfter.id))); |
| 183 next(); | 183 next(); |
| 184 } | 184 } |
| 185 } | 185 } |
| 186 ]); | 186 ]); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 Tests that pseudo elements and their styles are handled properly. | 238 Tests that pseudo elements and their styles are handled properly. |
| 239 </p> | 239 </p> |
| 240 | 240 |
| 241 <div id="container"> | 241 <div id="container"> |
| 242 <div id="inspected">Text</div> | 242 <div id="inspected">Text</div> |
| 243 <div id="empty"></div> | 243 <div id="empty"></div> |
| 244 </div> | 244 </div> |
| 245 | 245 |
| 246 </body> | 246 </body> |
| 247 </html> | 247 </html> |
| OLD | NEW |