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

Side by Side Diff: LayoutTests/media/track/track-cue-mutable-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 'RL' is not a valid value of type 'Direction Setting'. 1 CONSOLE WARNING: The provided value 'RL' is not a valid enum value.
2 CONSOLE WARNING: The provided value 'End' is not a valid value of type 'AlignSet ting'. 2 CONSOLE WARNING: The provided value 'End' is not a valid enum value.
3 Tests modifying attributes of a VTTCue 3 Tests modifying attributes of a VTTCue
4 4
5 ** Test initial values. 5 ** Test initial values.
6 RUN(textCue = cues.getCueById('1')) 6 RUN(textCue = cues.getCueById('1'))
7 EXPECTED (textCue.startTime == '0') OK 7 EXPECTED (textCue.startTime == '0') OK
8 EXPECTED (textCue.endTime == '1') OK 8 EXPECTED (textCue.endTime == '1') OK
9 EXPECTED (textCue.pauseOnExit == 'false') OK 9 EXPECTED (textCue.pauseOnExit == 'false') OK
10 EXPECTED (textCue.vertical == '') OK 10 EXPECTED (textCue.vertical == '') OK
11 EXPECTED (textCue.snapToLines == 'true') OK 11 EXPECTED (textCue.snapToLines == 'true') OK
12 EXPECTED (textCue.line == 'auto') OK 12 EXPECTED (textCue.line == 'auto') OK
(...skipping 17 matching lines...) Expand all
30 EXPECTED (textCue.vertical == '') OK 30 EXPECTED (textCue.vertical == '') OK
31 RUN(textCue.vertical = 'rl') 31 RUN(textCue.vertical = 'rl')
32 EXPECTED (textCue.vertical == 'rl') OK 32 EXPECTED (textCue.vertical == 'rl') OK
33 33
34 RUN(textCue.snapToLines = false) 34 RUN(textCue.snapToLines = false)
35 EXPECTED (textCue.snapToLines == 'false') OK 35 EXPECTED (textCue.snapToLines == 'false') OK
36 36
37 On setting, the text track cue line position must be set to the new value; if th e new value is the string 'auto', then it must be interpreted as the special val ue auto. 37 On setting, the text track cue line position must be set to the new value; if th e new value is the string 'auto', then it must be interpreted as the special val ue auto.
38 http://dev.w3.org/html5/webvtt/#dfn-vttcue-line 38 http://dev.w3.org/html5/webvtt/#dfn-vttcue-line
39 EXPECTED (textCue.line == 'auto') OK 39 EXPECTED (textCue.line == 'auto') OK
40 TEST(textCue.line = 'gazonk') THROWS("TypeError: Failed to set the 'line' proper ty on 'VTTCue': 'gazonk' is not a valid enum value.") OK 40 TEST(textCue.line = 'gazonk') THROWS("TypeError: Failed to set the 'line' proper ty on 'VTTCue': 'gazonk' is not a valid enum value.") FAIL
41 EXPECTED (textCue.line == 'auto') OK 41 EXPECTED (textCue.line == 'auto') OK
42 RUN(textCue.line = 42) 42 RUN(textCue.line = 42)
43 EXPECTED (textCue.line == '42') OK 43 EXPECTED (textCue.line == '42') OK
44 RUN(textCue.line = -2) 44 RUN(textCue.line = -2)
45 EXPECTED (textCue.line == '-2') OK 45 EXPECTED (textCue.line == '-2') OK
46 RUN(textCue.line = 102) 46 RUN(textCue.line = 102)
47 EXPECTED (textCue.line == '102') OK 47 EXPECTED (textCue.line == '102') OK
48 RUN(textCue.snapToLines = true) 48 RUN(textCue.snapToLines = true)
49 RUN(textCue.line = -2) 49 RUN(textCue.line = -2)
50 EXPECTED (textCue.line == '-2') OK 50 EXPECTED (textCue.line == '-2') OK
(...skipping 16 matching lines...) Expand all
67 67
68 On setting, the text track cue text alignment must be set to the value given in the first cell of the row in the table above whose second cell is a case-sensiti ve match for the new value. 68 On setting, the text track cue text alignment must be set to the value given in the first cell of the row in the table above whose second cell is a case-sensiti ve match for the new value.
69 http://dev.w3.org/html5/webvtt/#dfn-dom-vttcue-align 69 http://dev.w3.org/html5/webvtt/#dfn-dom-vttcue-align
70 RUN(textCue.align = 'End') 70 RUN(textCue.align = 'End')
71 EXPECTED (textCue.align == 'middle') OK 71 EXPECTED (textCue.align == 'middle') OK
72 RUN(textCue.align = 'end') 72 RUN(textCue.align = 'end')
73 EXPECTED (textCue.align == 'end') OK 73 EXPECTED (textCue.align == 'end') OK
74 74
75 END OF TEST 75 END OF TEST
76 76
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698