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

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

Issue 254833003: Sync VTTCue.align/vertical with spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update tests Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/media/track/track-cue-mutable.html ('k') | LayoutTests/media/track/vtt-cue-exceptions.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/track/track-cue-mutable-expected.txt
diff --git a/LayoutTests/media/track/track-cue-mutable-expected.txt b/LayoutTests/media/track/track-cue-mutable-expected.txt
index f8e71c36746bf0531d3421569b10ddd7f32d8056..aacffdfc089a4d440c955f3e1eb09518be4960d0 100644
--- a/LayoutTests/media/track/track-cue-mutable-expected.txt
+++ b/LayoutTests/media/track/track-cue-mutable-expected.txt
@@ -22,9 +22,9 @@ EXPECTED (textCue.endTime == '3.9') OK
RUN(textCue.pauseOnExit = true)
EXPECTED (textCue.pauseOnExit == 'true') OK
-On setting, the text track cue writing direction 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.
-http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-texttrackcue-vertical
-TEST(textCue.vertical = 'RL') THROWS(DOMException.SYNTAX_ERR: Failed to set the 'vertical' property on 'VTTCue': The value provided ('RL') is invalid. Only 'rl', 'lr', and the empty string are accepted.) OK
+On setting, the text track cue writing direction must be set to the value given in the first cell of the row in the table above whose second cell is a case-sensitive match for the new value.
+http://dev.w3.org/html5/webvtt/#dfn-dom-vttcue-vertical
+RUN(textCue.vertical = 'RL')
EXPECTED (textCue.vertical == '') OK
RUN(textCue.vertical = 'rl')
EXPECTED (textCue.vertical == 'rl') OK
@@ -59,9 +59,9 @@ TEST(textCue.size = 110) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the '
RUN(textCue.size = 57)
EXPECTED (textCue.size == '57') OK
-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.
-http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-texttrackcue-align
-TEST(textCue.align = 'End') THROWS(DOMException.SYNTAX_ERR: Failed to set the 'align' property on 'VTTCue': The value provided ('End') is invalid. Only 'start', 'middle', 'end', 'left', and 'right' are accepted.) OK
+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-sensitive match for the new value.
+http://dev.w3.org/html5/webvtt/#dfn-dom-vttcue-align
+RUN(textCue.align = 'End')
EXPECTED (textCue.align == 'middle') OK
RUN(textCue.align = 'end')
EXPECTED (textCue.align == 'end') OK
« no previous file with comments | « LayoutTests/media/track/track-cue-mutable.html ('k') | LayoutTests/media/track/vtt-cue-exceptions.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698