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

Side by Side Diff: LayoutTests/media/track/track-mode-expected.txt

Issue 1047993002: bindings: Add validation for enum Sequence or Array (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 CONSOLE WARNING: The provided value 'bogus' is not a valid value of type 'TextTr ackMode'. 1 CONSOLE WARNING: The provided value 'bogus' is not a valid enum value.
2 CONSOLE WARNING: The provided value '2' is not a valid value of type 'TextTrackM ode'. 2 CONSOLE WARNING: The provided value '2' is not a valid enum value.
3 Tests that the TextTrack mode attribute is appropriately set. 3 Tests that the TextTrack mode attribute is appropriately set.
4 4
5 5
6 ++ Test default attribute value 6 ++ Test default attribute value
7 EXPECTED (textTrack.mode == 'showing') OK 7 EXPECTED (textTrack.mode == 'showing') OK
8 EXPECTED (video.textTracks[0].mode == 'showing') OK 8 EXPECTED (video.textTracks[0].mode == 'showing') OK
9 9
10 *** Set to bogus value, should return default 10 *** Set to bogus value, should return default
11 RUN(textTrack.mode = 'bogus') 11 RUN(textTrack.mode = 'bogus')
12 EXPECTED (textTrack.mode == 'showing') OK 12 EXPECTED (textTrack.mode == 'showing') OK
(...skipping 24 matching lines...) Expand all
37 EXPECTED (textTrack.mode == 'showing') OK 37 EXPECTED (textTrack.mode == 'showing') OK
38 EXPECTED (video.textTracks[0].mode == 'showing') OK 38 EXPECTED (video.textTracks[0].mode == 'showing') OK
39 EXPECTED (textTrack.cues.length == '3') OK 39 EXPECTED (textTrack.cues.length == '3') OK
40 40
41 ++ at least 3 events expected while mode = showing 41 ++ at least 3 events expected while mode = showing
42 EVENT(cuechange) 42 EVENT(cuechange)
43 EVENT(cuechange) 43 EVENT(cuechange)
44 EVENT(cuechange) 44 EVENT(cuechange)
45 END OF TEST 45 END OF TEST
46 46
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698