OLD | NEW |
1 <html> | 1 <html> |
2 <link rel="import" href="../resources/chai.sky" /> | 2 <import src="../resources/chai.sky" /> |
3 <link rel="import" href="/sky/framework/inspector/dom-agent.sky" as="DOMAgent" /
> | 3 <import src="/sky/framework/inspector/dom-agent.sky" as="DOMAgent" /> |
4 <div><div></div></div> | 4 <div><div></div></div> |
5 <script> | 5 <script> |
6 // setTimeout to flush pending DOM modifications and measure | 6 // setTimeout to flush pending DOM modifications and measure |
7 // only the changes we want to. | 7 // only the changes we want to. |
8 var expectedMessages = [ | 8 var expectedMessages = [ |
9 'DOM.childNodeRemoved', | 9 'DOM.childNodeRemoved', |
10 'DOM.childNodeInserted', | 10 'DOM.childNodeInserted', |
11 ]; | 11 ]; |
12 var actualMessages = []; | 12 var actualMessages = []; |
13 | 13 |
(...skipping 13 matching lines...) Expand all Loading... |
27 container.appendChild(document.createElement('adding')); | 27 container.appendChild(document.createElement('adding')); |
28 | 28 |
29 setTimeout(function() { | 29 setTimeout(function() { |
30 assert.equal(JSON.stringify(expectedMessages), | 30 assert.equal(JSON.stringify(expectedMessages), |
31 JSON.stringify(actualMessages)); | 31 JSON.stringify(actualMessages)); |
32 internals.notifyTestComplete("Done!"); | 32 internals.notifyTestComplete("Done!"); |
33 }); | 33 }); |
34 }); | 34 }); |
35 </script> | 35 </script> |
36 </html> | 36 </html> |
OLD | NEW |