OLD | NEW |
1 Tests default DOM layout structure for a TextTrackRegion. | 1 Tests default DOM layout structure for a VTTRegion. |
2 | 2 |
3 EVENT(canplaythrough) | 3 EVENT(canplaythrough) |
4 ** The text track has only one region ** | 4 ** The text track has only one region ** |
5 EXPECTED (testTrack.regions.length == '1') OK | 5 EXPECTED (testTrack.regions.length == '1') OK |
6 | 6 |
7 ** Inspecting the default DOM layout used for regions display ** | 7 ** Inspecting the default DOM layout used for regions display ** |
8 | 8 |
9 ** Only one region should be displayed ** | 9 ** Only one region should be displayed ** |
10 EXPECTED (region.children.length == '1') OK | 10 EXPECTED (region.children.length == '1') OK |
11 | 11 |
12 ** The child of the region should be the container ** | 12 ** The child of the region should be the container ** |
13 EXPECTED (region.children[0] == container == 'true') OK | 13 EXPECTED (region.children[0] == container == 'true') OK |
14 | 14 |
15 ** Default pseudo IDs should be set properly | 15 ** Default pseudo IDs should be set properly |
16 EXPECTED (region.getAttribute('part') == '-webkit-media-text-track-region') OK | 16 EXPECTED (region.getAttribute('part') == '-webkit-media-text-track-region') OK |
17 EXPECTED (container.getAttribute('part') == '-webkit-media-text-track-region-con
tainer') OK | 17 EXPECTED (container.getAttribute('part') == '-webkit-media-text-track-region-con
tainer') OK |
18 END OF TEST | 18 END OF TEST |
19 | 19 |
OLD | NEW |