| OLD | NEW |
| 1 Tests TextTrackRegionList functionality: length, operator[], and getRegionById() | 1 Tests TextTrackRegionList functionality: length, operator[], and getRegionById() |
| 2 | 2 |
| 3 | 3 |
| 4 ** Implicit mode disabled and the regions attribute is null ** | 4 ** Implicit mode disabled and the regions attribute is null ** |
| 5 EXPECTED (testTrack.track.mode == 'disabled') OK | 5 EXPECTED (testTrack.track.mode == 'disabled') OK |
| 6 EXPECTED (testTrack.track.regions == 'null') OK | 6 EXPECTED (testTrack.track.regions == 'null') OK |
| 7 | 7 |
| 8 ** The regions attribute should be an empty TextTrackRegionList ** | 8 ** The regions attribute should be an empty TextTrackRegionList ** |
| 9 EXPECTED (regions != null == 'true') OK | 9 EXPECTED (regions != null == 'true') OK |
| 10 EXPECTED (regions.length == '0') OK | 10 EXPECTED (regions.length == '0') OK |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 EXPECTED (regions[0].height == '5') OK | 28 EXPECTED (regions[0].height == '5') OK |
| 29 EXPECTED (regions[0].width == '87') OK | 29 EXPECTED (regions[0].width == '87') OK |
| 30 EXPECTED (regions[0].scroll == 'up') OK | 30 EXPECTED (regions[0].scroll == 'up') OK |
| 31 EXPECTED (regions[0] != updatedRegion == 'true') OK | 31 EXPECTED (regions[0] != updatedRegion == 'true') OK |
| 32 | 32 |
| 33 ** Add the region back and check if removeRegion() removes it properly ** | 33 ** Add the region back and check if removeRegion() removes it properly ** |
| 34 EXPECTED (regions.length == '1') OK | 34 EXPECTED (regions.length == '1') OK |
| 35 EXPECTED (regions.length == '0') OK | 35 EXPECTED (regions.length == '0') OK |
| 36 | 36 |
| 37 ** In case the region is not found, NotFoundError should be thrown ** | 37 ** In case the region is not found, NotFoundError should be thrown ** |
| 38 Error: NotFoundError: DOM Exception 8 | 38 NotFoundError: An attempt was made to reference a Node in a context where it doe
s not exist. |
| 39 | 39 |
| 40 END OF TEST | 40 END OF TEST |
| 41 | 41 |
| OLD | NEW |