blob: 91c9ef18c508c2548965703400e76dda69c84400 [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]"));
}
function done() {
document.body.classList.add("done");
}
</script>
<style>
body.done .tests {
display: none;
}
</style>
</head>
<!-- Compare with accessibility/name-calc-inputs.html -->
<body onLoad="runTest();">
<div class="tests">
<input data-dump id="text1" type="text">
<input data-dump id="text2" type="text" title="text2-title">
<input data-dump id="text3" type="text" title="text3-title" placeholder="text3-placeholder">
<input data-dump id="text4" type="text" title="text4-title" placeholder="text4-placeholder">
<label for="text4">label-for-text4</label>
<input data-dump id="text5" type="text" title="text5-title" placeholder="text5-placeholder" aria-label="text5-aria-label">
<label for="text5">label-for-text5</label>
<input data-dump id="text6" type="text" title="text6-title" placeholder="text6-placeholder" aria-label="text6-aria-label" aria-labelledby="text-labelledby6">
<label for="text6">label-for-text6</label>
<span id="text-labelledby6">labelledby-for-text6</span>
<label>label-wrapping-text7<input data-dump id="text7" type="text" title="text7-title"></label>
<label for="dummy">label-wrapping-text8<input data-dump id="text8" type="text"></label>
<label for="text9">label-for-text9</label>
<label>label-wrapping-text9<input data-dump id="text9" type="text" title="text9-title" placeholder="text9-placeholder"></label>
<label>label-wrapping-text10<input data-dump id="text10" type="text" title="text10-title" placeholder="text10-placeholder">
</label>
<input data-dump id="text11" type="text">
<label for="text11">first-label-for-text11</label>
<label for="text11">second-label-for-text11</label>
</div>
</body>
</html>