blob: 00a3123c52921545f93e19e7167104979e4e9bb7 [file] [log] [blame]
<!-- comment 1 -->
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/elements-test.js"></script>
<script>
function test()
{
InspectorTest.nodeWithId("inspect", onNode);
function onNode(node)
{
var commentNode = node.nextSibling;
InspectorTest.selectNode(commentNode)
.then(onNodeSelected);
}
function onNodeSelected()
{
InspectorTest.addResult("HTML comments shown:");
InspectorTest.dumpElementsTree();
Common.settingForTest("showHTMLComments").set(false);
InspectorTest.addResult("\nHTML comments hidden:");
InspectorTest.dumpElementsTree();
InspectorTest.completeTest();
}
}
</script>
</head>
<!-- comment 2 -->
<body onload="runTest()">
<p>
Verifies show/hide HTML comments setting.
<span id="inspect"></span>
<!-- comment 3 -->
</p>
</body>
</html>