blob: d950f843a35b8f2250b610589a3903b23c187d62 [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, "button"));
}
function done() {
document.body.classList.add("done");
}
</script>
<style>
body.done .tests {
display: none;
}
</style>
</head>
<!-- Compare with accessibility/name-calc-native-markup-buttons.html" -->
<body onLoad="runTest();">
<div class="tests">
<button id="button1"></button>
<button id="button2">button2-content</button>
<button id="button3"><img src="resources/cake.png"></button>
<button id="button4"><img src="resources/cake.png" alt="cake"></button>
<button id="button5">I love <img src="resources/cake.png">!</button>
<button id="button6">I love <img src="resources/cake.png" alt="cake">!</button>
<button id="button7" title="button7-title"></button>
<button id="button8" title="button8-title">button8-content</button>
<button id="button9" title="button9-title"><img src="resources/cake.png"></button>
<button id="button10" title="button10-title"><img src="resources/cake.png" alt="cake"></button>
<button id="button11">button11-content</button>
<label for="button11">label-for-button11</label>
</div>
</body>
</html>