| <script src="../media-file.js"></script> |
| <script src="controls-test-helpers.js"></script> |
| var tester = new ControlsTest() |
| currentState = tester.currentState; |
| tester.test("We are using the apple idiom") |
| .value(currentState.idiom) |
| tester.startNewSection("Get the status label state"); |
| var statusDisplayLabelState = tester.stateForControlsElement("Status Display"); |
| tester.test("Name is 'Status Display'") |
| .value(statusDisplayLabelState.name) |
| .isEqualTo("Status Display"); |
| tester.test("Has hidden class") |
| .value(statusDisplayLabelState.className) |
| tester.test("Content is Empty") |
| .value(statusDisplayLabelState.textContent) |
| tester.test("CSS display: none") |
| .value(statusDisplayLabelState.computedStyle.display) |
| <p>This tests for the content in the status display.</p> |
| <p>This test only runs in DRT!</p> |