OLD | NEW |
| (Empty) |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd"> | |
2 <html> | |
3 <head> | |
4 <script src="../../http/tests/inspector/inspector-test.js"></script> | |
5 <script src="../../http/tests/inspector/elements-test.js"></script> | |
6 <script> | |
7 | |
8 function removeDoctype() | |
9 { | |
10 document.removeChild(document.firstChild); | |
11 } | |
12 | |
13 function test() | |
14 { | |
15 InspectorTest.expandElementsTree(step1); | |
16 | |
17 function step1() | |
18 { | |
19 InspectorTest.addResult("Before remove doctype"); | |
20 InspectorTest.dumpElementsTree(null, 1); | |
21 InspectorTest.evaluateInPage("removeDoctype()", step2); | |
22 } | |
23 | |
24 function step2() | |
25 { | |
26 InspectorTest.addResult("After remove doctype"); | |
27 InspectorTest.dumpElementsTree(null, 1); | |
28 InspectorTest.completeTest(); | |
29 } | |
30 } | |
31 | |
32 </script> | |
33 </head> | |
34 | |
35 <body onload="runTest()"> | |
36 <p> | |
37 Tests that removing child from the document is handled properly in the elements
panel. | |
38 </p> | |
39 | |
40 </body> | |
41 </html> | |
OLD | NEW |