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