| <title id="title">TITLE</title> |
| <script src="../resources/js-test-pre.js"></script> |
| <button id="button" aria-labelledby="title">Go</button> |
| description("This tests that if try to use a non-rendered node as your labelledby element, it won't crash and it will work."); |
| if (window.accessibilityController) { |
| var button = accessibilityController.accessibleElementById("button"); |
| if (accessibilityController.platformName == "atk") |
| shouldBe("button.title", "'AXTitle: TITLE'"); |
| shouldBe("button.description", "'AXDescription: TITLE'"); |
| <script src="../resources/js-test-post.js"></script> |