Chromium Code Reviews| Index: LayoutTests/accessibility/link-inside-label.html |
| diff --git a/LayoutTests/accessibility/link-inside-label.html b/LayoutTests/accessibility/link-inside-label.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..114b49dc7b946e65576a203449c6790b5c70b6a2 |
| --- /dev/null |
| +++ b/LayoutTests/accessibility/link-inside-label.html |
| @@ -0,0 +1,31 @@ |
| +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| +<html> |
| +<head> |
| +<script> |
| +if (window.testRunner) |
| + testRunner.dumpAsText(); |
| +</script> |
| +</head> |
| +<body> |
| + |
| +<label> |
| +Row 1 |
| +<input type="checkbox"> |
| +<a href="#" id="a1">More info</a> |
| +<button>Do something</button> |
| +</label> |
| + |
| +<p id="description">This tests that a link element present inside a label element is accessible when label has more than one child.</p> |
| +<div id="result"></div> |
| + |
| +<script> |
| +if (window.accessibilityController) { |
| + var test = document.getElementById("a1"); |
| + test.focus(); |
| + test = accessibilityController.focusedElement; |
| + result.innerText = "\nRole should be:" + test.role; |
|
aboxhall
2014/12/12 18:05:25
This is a little confusing - I would rephrase as "
|
| +} |
| +</script> |
| + |
| +</body> |
| +</html> |