| Testing the TimeLabel class. |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| PASS timeLabel.value is 0 |
| PASS timeLabel.element.localName is "div" |
| PASS timeLabel.element.className is "time-label" |
| PASS style.position is "absolute" |
| PASS style.fontFamily is "-apple-system-monospaced-numbers" |
| PASS style.fontSize is "12px" |
| |
| NaNTimeLabel.element.textContent = --:-- |
| |
| PASS elaspedLabel is "Elapsed" |
| PASS remainingLabel is "Remaining" |
| PASS accessibilityController.accessibleElementById('remaining').role is "AXRole: AXStaticText" |
| PASS accessibilityController.accessibleElementById('elasped').role is "AXRole: AXStaticText" |
| |
| elapsedTimeLabels[3].element.textContent = 0:01 |
| elapsedTimeLabels[3].width = 27 |
| remainingTimeLabels[3].element.textContent = -0:01 |
| remainingTimeLabels[3].width = 33 |
| |
| elapsedTimeLabels[4].element.textContent = 00:01 |
| elapsedTimeLabels[4].width = 35 |
| remainingTimeLabels[4].element.textContent = -00:01 |
| remainingTimeLabels[4].width = 40 |
| |
| elapsedTimeLabels[5].element.textContent = 0:00:01 |
| elapsedTimeLabels[5].width = 46 |
| remainingTimeLabels[5].element.textContent = -0:00:01 |
| remainingTimeLabels[5].width = 52 |
| |
| elapsedTimeLabels[6].element.textContent = 00:00:01 |
| elapsedTimeLabels[6].width = 54 |
| remainingTimeLabels[6].element.textContent = -00:00:01 |
| remainingTimeLabels[6].width = 59 |
| |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |