| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| <label for="progress">label</label> |
| <progress id="progress" title="title" value="22" max="100"></progress> |
| <label>label wrapping output<progress id="progress2" value="22" max="100"></progress></label> |
| description("This tests that for progress elements, label should be used as accessible name and title should be used as accessible description."); |
| if (window.accessibilityController) { |
| var prog1 = accessibilityController.accessibleElementById("progress"); |
| shouldBe("prog1.title", "'AXTitle: label'"); |
| shouldBe("prog1.helpText", "'AXHelp: title'"); |
| var prog2 = accessibilityController.accessibleElementById("progress2"); |
| shouldBe("prog2.title", "'AXTitle: label wrapping output'"); |
| <script src="../../resources/js-test-post.js"></script> |