Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: LayoutTests/media/track/regions-webvtt/text-track-region-list-expected.txt

Issue 25798003: Enable WebVTT regions for runtime testing, updated tests and minor fixes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698