| <script src="../resources/js-test-pre.js"></script> |
| <script src="../resources/accessibility-helper.js"></script> |
| <title>aria-labelledby Overrides aria-labeledby</title> |
| <a aria-labeledby="x1 x2" aria-labelledby="y1 y2" href="#" id="link">X</a> |
| <!-- Incorrectly spelled aria-labelledby attribute labels. --> |
| <!-- Correctly spelled aria-labelledby attribute labels. --> |
| description("This tests that aria-labelledby overrides aria-labeledby correctly."); |
| if (window.accessibilityController) { |
| var axLink = accessibilityController.accessibleElementById("link"); |
| shouldBeEqualToString("platformValueForW3CName(axLink)", "Y Z"); |
| // Hide superfluous text. |
| document.getElementById("test").style.display = "none"; |
| <script src="../resources/js-test-post.js"></script> |