| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <link rel="import" href="/sky/framework/inspector/dom-agent.sky" as="DOMAgent" /
> | 2 <import src="/sky/framework/inspector/dom-agent.sky" as="DOMAgent" /> |
| 3 <div></div> | 3 <div></div> |
| 4 <script> | 4 <script> |
| 5 // FIXME: This shows a bug in our DOM mutation handling, we should | 5 // FIXME: This shows a bug in our DOM mutation handling, we should |
| 6 // only get one childNodeInserted record here, but we get two, which | 6 // only get one childNodeInserted record here, but we get two, which |
| 7 // means the inspector shows two nodes where it should only show one. | 7 // means the inspector shows two nodes where it should only show one. |
| 8 | 8 |
| 9 // setTimeout to flush pending DOM modifications and measure | 9 // setTimeout to flush pending DOM modifications and measure |
| 10 // only the changes we want to. | 10 // only the changes we want to. |
| 11 setTimeout(function() { | 11 setTimeout(function() { |
| 12 var delegate = { | 12 var delegate = { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 25 var adding = document.createElement('adding'); | 25 var adding = document.createElement('adding'); |
| 26 document.querySelector('div').appendChild(adding); | 26 document.querySelector('div').appendChild(adding); |
| 27 adding.textContent = 'adding'; | 27 adding.textContent = 'adding'; |
| 28 | 28 |
| 29 setTimeout(function() { | 29 setTimeout(function() { |
| 30 internals.notifyTestComplete(internals.contentAsText()); | 30 internals.notifyTestComplete(internals.contentAsText()); |
| 31 }); | 31 }); |
| 32 }); | 32 }); |
| 33 </script> | 33 </script> |
| 34 </html> | 34 </html> |
| OLD | NEW |