Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / edit / delete-from-document.html
blobb58e47b733ce10cf0957ab83f7a0de2347a90cf2
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/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>
8 function removeDoctype()
10 document.removeChild(document.firstChild);
13 function test()
15 InspectorTest.expandElementsTree(step1);
17 function step1()
19 InspectorTest.addResult("Before remove doctype");
20 InspectorTest.dumpElementsTree(null, 1);
21 InspectorTest.evaluateInPage("removeDoctype()", step2);
24 function step2()
26 InspectorTest.addResult("After remove doctype");
27 InspectorTest.dumpElementsTree(null, 1);
28 InspectorTest.completeTest();
32 </script>
33 </head>
35 <body onload="runTest()">
36 <p>
37 Tests that removing child from the document is handled properly in the elements panel.
38 </p>
40 </body>
41 </html>