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

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

Issue 197213012: Improve media-related exception messages (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove redundant TimeRanges test Created 6 years, 9 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 modifying attributes of a VTTCue 1 Tests modifying attributes of a VTTCue
2 2
3 ** Test initial values. 3 ** Test initial values.
4 RUN(textCue = cues.getCueById('1')) 4 RUN(textCue = cues.getCueById('1'))
5 EXPECTED (textCue.startTime == '0') OK 5 EXPECTED (textCue.startTime == '0') OK
6 EXPECTED (textCue.endTime == '1') OK 6 EXPECTED (textCue.endTime == '1') OK
7 EXPECTED (textCue.pauseOnExit == 'false') OK 7 EXPECTED (textCue.pauseOnExit == 'false') OK
8 EXPECTED (textCue.vertical == '') OK 8 EXPECTED (textCue.vertical == '') OK
9 EXPECTED (textCue.snapToLines == 'true') OK 9 EXPECTED (textCue.snapToLines == 'true') OK
10 EXPECTED (textCue.line == '-1') OK 10 EXPECTED (textCue.line == '-1') OK
(...skipping 29 matching lines...) Expand all
40 RUN(textCue.line = 42) 40 RUN(textCue.line = 42)
41 EXPECTED (textCue.line == '42') OK 41 EXPECTED (textCue.line == '42') OK
42 RUN(textCue.snapToLines = true) 42 RUN(textCue.snapToLines = true)
43 RUN(textCue.line = -2) 43 RUN(textCue.line = -2)
44 EXPECTED (textCue.line == '-2') OK 44 EXPECTED (textCue.line == '-2') OK
45 RUN(textCue.line = 102) 45 RUN(textCue.line = 102)
46 EXPECTED (textCue.line == '102') OK 46 EXPECTED (textCue.line == '102') OK
47 47
48 On setting, if the new value is negative or greater than 100, then throw an Inde xSizeError exception. Otherwise, set the text track cue text position to the new value. 48 On setting, if the new value is negative or greater than 100, then throw an Inde xSizeError exception. Otherwise, set the text track cue text position to the new value.
49 http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.ht ml#dom-texttrackcue-line 49 http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.ht ml#dom-texttrackcue-line
50 TEST(textCue.position = -200) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the 'position' property on 'VTTCue': The value provided (-200) is not between 0 and 100.) OK 50 TEST(textCue.position = -200) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the 'position' property on 'VTTCue': The value provided (-200) is outside the ra nge [0, 100].) OK
51 TEST(textCue.position = 110) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set t he 'position' property on 'VTTCue': The value provided (110) is not between 0 an d 100.) OK 51 TEST(textCue.position = 110) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set t he 'position' property on 'VTTCue': The value provided (110) is outside the rang e [0, 100].) OK
52 RUN(textCue.position = 11) 52 RUN(textCue.position = 11)
53 EXPECTED (textCue.position == '11') OK 53 EXPECTED (textCue.position == '11') OK
54 54
55 On setting, if the new value is negative or greater than 100, then throw an Inde xSizeError exception. Otherwise, set the text track cue size to the new value. 55 On setting, if the new value is negative or greater than 100, then throw an Inde xSizeError exception. Otherwise, set the text track cue size to the new value.
56 http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.ht ml#dom-texttrackcue-size 56 http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.ht ml#dom-texttrackcue-size
57 TEST(textCue.size = -200) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the 'size' property on 'VTTCue': The value provided (-200) is not between 0 and 100. ) OK 57 TEST(textCue.size = -200) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the 'size' property on 'VTTCue': The value provided (-200) is outside the range [0, 100].) OK
58 TEST(textCue.size = 110) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the ' size' property on 'VTTCue': The value provided (110) is not between 0 and 100.) OK 58 TEST(textCue.size = 110) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the ' size' property on 'VTTCue': The value provided (110) is outside the range [0, 10 0].) OK
59 RUN(textCue.size = 57) 59 RUN(textCue.size = 57)
60 EXPECTED (textCue.size == '57') OK 60 EXPECTED (textCue.size == '57') OK
61 61
62 On setting, the text track cue alignment must be set to the value ... is a case- sensitive match for the new value, if any. If none of the values match, then the user agent must instead throw a SyntaxError exception. 62 On setting, the text track cue alignment must be set to the value ... is a case- sensitive match for the new value, if any. If none of the values match, then the user agent must instead throw a SyntaxError exception.
63 http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.ht ml#dom-texttrackcue-align 63 http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.ht ml#dom-texttrackcue-align
64 TEST(textCue.align = 'End') THROWS(DOMException.SYNTAX_ERR: Failed to set the 'a lign' property on 'VTTCue': The value provided ('End') is invalid. Only 'start', 'middle', 'end', 'left', and 'right' are accepted.) OK 64 TEST(textCue.align = 'End') THROWS(DOMException.SYNTAX_ERR: Failed to set the 'a lign' property on 'VTTCue': The value provided ('End') is invalid. Only 'start', 'middle', 'end', 'left', and 'right' are accepted.) OK
65 EXPECTED (textCue.align == 'middle') OK 65 EXPECTED (textCue.align == 'middle') OK
66 RUN(textCue.align = 'end') 66 RUN(textCue.align = 'end')
67 EXPECTED (textCue.align == 'end') OK 67 EXPECTED (textCue.align == 'end') OK
68 68
69 END OF TEST 69 END OF TEST
70 70
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698