OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script> | 3 <script> |
4 var count = 0; | 4 var count = 0; |
5 if (!window.layoutTestController) | 5 if (!window.layoutTestController) |
6 document.write("This test requires GCController."); | 6 document.write("This test requires GCController."); |
7 else { | 7 else { |
8 layoutTestController.dumpAsText(); | 8 layoutTestController.dumpAsText(); |
9 layoutTestController.waitUntilDone(); | 9 layoutTestController.waitUntilDone(); |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 setTimeout(function () { | 21 setTimeout(function () { |
22 document.write("<select><option>First Child</option></select>"); | 22 document.write("<select><option>First Child</option></select>"); |
23 document.getElementsByTagName('option')[0].appendChild(document.createTe
xtNode("Second Child")); | 23 document.getElementsByTagName('option')[0].appendChild(document.createTe
xtNode("Second Child")); |
24 | 24 |
25 document.addEventListener('DOMNodeRemovedFromDocument', function () { cr
ash(); }, true); | 25 document.addEventListener('DOMNodeRemovedFromDocument', function () { cr
ash(); }, true); |
26 document.getElementsByTagName('option')[0].text = "New text"; | 26 document.getElementsByTagName('option')[0].text = "New text"; |
27 }, 0); | 27 }, 0); |
28 } | 28 } |
29 </script> | 29 </script> |
30 </html> | 30 </html> |
OLD | NEW |