blob: f9d32b838c35634ad7579ea279f8109372eef2e4 [file] [log] [blame]
<html>
<head>
<script type="text/javascript" src="../../http/tests/inspector-protocol/dom-protocol-test.js"></script>
<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
<script type="text/javascript" src="accessibility-dumpAccessibilityNodes.js"></script>
<script>
function test()
{
InspectorTest.sendCommand("DOM.getDocument", {}, InspectorTest.dumpAccessibilityNodesBySelectorAndCompleteTest.bind(null, "[data-dump]"));
}
</script>
<style>
body.done * {
display: none;
}
</style>
</head>
<body onLoad="runTest();">
<div data-dump>Hidden by modal dialog</div>
<dialog data-dump>
(Dialog itself is not hidden)
<div data-dump>Non-hidden element inside dialog</div>
</dialog>
<script>
document.querySelector("dialog").showModal();
</script>
</body>
</html>