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

Unified Diff: LayoutTests/media/track/track-cue-mutable.html

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
Index: LayoutTests/media/track/track-cue-mutable.html
diff --git a/LayoutTests/media/track/track-cue-mutable.html b/LayoutTests/media/track/track-cue-mutable.html
index 28d050b2c073bbb33f7e963d50eec8b39072a462..698bfb88f8cd0c45fcbc7bd8da2de11d5820aa9c 100644
--- a/LayoutTests/media/track/track-cue-mutable.html
+++ b/LayoutTests/media/track/track-cue-mutable.html
@@ -46,9 +46,9 @@
run("textCue.pauseOnExit = true");
testExpected("textCue.pauseOnExit", true);
- logSpecURL("http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-texttrackcue-vertical",
- "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.");
- testDOMException("textCue.vertical = 'RL'", "DOMException.SYNTAX_ERR");
+ logSpecURL("http://dev.w3.org/html5/webvtt/#dfn-dom-vttcue-vertical",
+ "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.");
+ run("textCue.vertical = 'RL'");
testExpected("textCue.vertical", "");
run("textCue.vertical = 'rl'");
testExpected("textCue.vertical", "rl");
@@ -84,9 +84,9 @@
run("textCue.size = 57");
testExpected("textCue.size", 57);
- logSpecURL("http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-texttrackcue-align",
- "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.");
- testDOMException("textCue.align = 'End'", "DOMException.SYNTAX_ERR");
+ logSpecURL("http://dev.w3.org/html5/webvtt/#dfn-dom-vttcue-align",
+ "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.");
+ run("textCue.align = 'End'");
testExpected("textCue.align", "middle");
run("textCue.align = 'end'");
testExpected("textCue.align", "end");
« no previous file with comments | « LayoutTests/media/track/opera/interfaces/VTTCue/vertical.html ('k') | LayoutTests/media/track/track-cue-mutable-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698