blob: b58e47b733ce10cf0957ab83f7a0de2347a90cf2 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="../../../http/tests/inspector/inspector-test.js"></script>
<script src="../../../http/tests/inspector/elements-test.js"></script>
<script>
function removeDoctype()
{
document.removeChild(document.firstChild);
}
function test()
{
InspectorTest.expandElementsTree(step1);
function step1()
{
InspectorTest.addResult("Before remove doctype");
InspectorTest.dumpElementsTree(null, 1);
InspectorTest.evaluateInPage("removeDoctype()", step2);
}
function step2()
{
InspectorTest.addResult("After remove doctype");
InspectorTest.dumpElementsTree(null, 1);
InspectorTest.completeTest();
}
}
</script>
</head>
<body onload="runTest()">
<p>
Tests that removing child from the document is handled properly in the elements panel.
</p>
</body>
</html>