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

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

Issue 1879353002: Convert track tests from video-test.js to testharness.js based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comment Created 4 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: third_party/WebKit/LayoutTests/media/track/track-cue-mutable-expected.txt
diff --git a/third_party/WebKit/LayoutTests/media/track/track-cue-mutable-expected.txt b/third_party/WebKit/LayoutTests/media/track/track-cue-mutable-expected.txt
deleted file mode 100644
index 9ec31e8f6fa0842bcc03f26e3706216c143e7c94..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/media/track/track-cue-mutable-expected.txt
+++ /dev/null
@@ -1,76 +0,0 @@
-CONSOLE WARNING: The provided value 'RL' is not a valid enum value of type DirectionSetting.
-CONSOLE WARNING: The provided value 'End' is not a valid enum value of type AlignSetting.
-Tests modifying attributes of a VTTCue
-
-** Test initial values.
-RUN(textCue = cues.getCueById('1'))
-EXPECTED (textCue.startTime == '0') OK
-EXPECTED (textCue.endTime == '1') OK
-EXPECTED (textCue.pauseOnExit == 'false') OK
-EXPECTED (textCue.vertical == '') OK
-EXPECTED (textCue.snapToLines == 'true') OK
-EXPECTED (textCue.line == 'auto') OK
-EXPECTED (textCue.position == 'auto') OK
-EXPECTED (textCue.size == '100') OK
-EXPECTED (textCue.align == 'middle') OK
-
-** Modify cue values.
-RUN(textCue.startTime = 1.1)
-EXPECTED (textCue.startTime == '1.1') OK
-
-RUN(textCue.endTime = 3.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 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
-
-RUN(textCue.snapToLines = false)
-EXPECTED (textCue.snapToLines == 'false') OK
-
-On setting, the text track cue line position must be set to the new value; if the new value is the string 'auto', then it must be interpreted as the special value auto.
-http://dev.w3.org/html5/webvtt/#dfn-vttcue-line
-EXPECTED (textCue.line == 'auto') OK
-TEST(textCue.line = 'gazonk') THROWS("TypeError: Failed to set the 'line' property on 'VTTCue': 'gazonk' is not a valid enum value.") FAIL
-EXPECTED (textCue.line == 'auto') OK
-RUN(textCue.line = 42)
-EXPECTED (textCue.line == '42') OK
-RUN(textCue.line = -2)
-EXPECTED (textCue.line == '-2') OK
-RUN(textCue.line = 102)
-EXPECTED (textCue.line == '102') OK
-RUN(textCue.snapToLines = true)
-RUN(textCue.line = -2)
-EXPECTED (textCue.line == '-2') OK
-RUN(textCue.line = 102)
-EXPECTED (textCue.line == '102') OK
-
-On setting, if the new value is negative or greater than 100, then throw an IndexSizeError exception. Otherwise, set the text track cue text position to the new value.
-http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-texttrackcue-line
-TEST(textCue.position = -200) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the 'position' property on 'VTTCue': The value provided (-200) is outside the range [0, 100].) OK
-TEST(textCue.position = 110) THROWS(DOMException.INDEX_SIZE_ERR: Failed to set the 'position' property on 'VTTCue': The value provided (110) is outside the range [0, 100].) OK
-RUN(textCue.position = 11)
-EXPECTED (textCue.position == '11') OK
-
-On setting, if the new value is negative or greater than 100, then throw an IndexSizeError exception. Otherwise, set the text track cue size to the new value.
-http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-texttrackcue-size
-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
-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, 100].) OK
-RUN(textCue.size = 57)
-EXPECTED (textCue.size == '57') 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
-
-END OF TEST
-

Powered by Google App Engine
This is Rietveld 408576698