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

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

Issue 1913423002: 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 nit 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-rendering-rtl-expected.txt
diff --git a/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-rtl-expected.txt b/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-rtl-expected.txt
deleted file mode 100644
index 719657521cbb20afcbd80253e72bb3c1f6eadf1e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/media/track/track-cue-rendering-rtl-expected.txt
+++ /dev/null
@@ -1,134 +0,0 @@
-Test that directionality is set correctly on cues.
-
-** RTL cues alternate with LTR cues **
-EVENT(canplaythrough)
-EVENT(seeked)
-
-** Jump to next cue **
-EXPECTED (video.currentTime == '0.25') OK
-EXPECTED (testTrack.track.activeCues.length == '1') OK
-EXPECTED (testTrack.track.activeCues[0].text == 'تجربة') OK
-EXPECTED (testCueDisplayBox.innerText == 'تجربة') OK
-
-** The position should be default and CSS direction set to rtl **
-EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayBox.offsetWidth == 'true') OK
-EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'rtl') OK
-
-RUN(video.currentTime = 0.75)
-EVENT(seeked)
-
-** Jump to next cue **
-EXPECTED (video.currentTime == '0.75') OK
-EXPECTED (testTrack.track.activeCues.length == '1') OK
-EXPECTED (testTrack.track.activeCues[0].text == ' 1234') OK
-EXPECTED (testCueDisplayBox.innerText == ' 1234') OK
-
-** The position should be default and CSS direction set to ltr **
-EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayBox.offsetWidth == 'true') OK
-EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'ltr') OK
-
-RUN(video.currentTime = 1.25)
-EVENT(seeked)
-
-** Jump to next cue **
-EXPECTED (video.currentTime == '1.25') OK
-EXPECTED (testTrack.track.activeCues.length == '1') OK
-EXPECTED (testTrack.track.activeCues[0].text == 'تجربة LTR new line, but cue should be RTL') OK
-EXPECTED (testCueDisplayBox.innerText == 'تجربة LTR new line, but cue should be RTL') OK
-
-** The position should be default and CSS direction set to rtl **
-EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayBox.offsetWidth == 'true') OK
-EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'rtl') OK
-
-RUN(video.currentTime = 1.75)
-EVENT(seeked)
-
-** Jump to next cue **
-EXPECTED (video.currentTime == '1.75') OK
-EXPECTED (testTrack.track.activeCues.length == '1') OK
-EXPECTED (testTrack.track.activeCues[0].text == 'LTR cue تجربة') OK
-EXPECTED (testCueDisplayBox.innerText == 'LTR cue تجربة') OK
-
-** The position should be default and CSS direction set to ltr **
-EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayBox.offsetWidth == 'true') OK
-EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'ltr') OK
-
-RUN(video.currentTime = 2.25)
-EVENT(seeked)
-
-** Jump to next cue **
-EXPECTED (video.currentTime == '2.25') OK
-EXPECTED (testTrack.track.activeCues.length == '1') OK
-EXPECTED (testTrack.track.activeCues[0].text == ';1234تجربة') OK
-EXPECTED (testCueDisplayBox.innerText == ';1234تجربة') OK
-
-** The position should be default and CSS direction set to rtl **
-EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayBox.offsetWidth == 'true') OK
-EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'rtl') OK
-
-RUN(video.currentTime = 2.75)
-EVENT(seeked)
-
-** Jump to next cue **
-EXPECTED (video.currentTime == '2.75') OK
-EXPECTED (testTrack.track.activeCues.length == '1') OK
-EXPECTED (testTrack.track.activeCues[0].text == ' ०१२३४५६७८९ ') OK
-EXPECTED (testCueDisplayBox.innerText == ' ०१२३४५६७८९ ') OK
-
-** The position should be default and CSS direction set to ltr **
-EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayBox.offsetWidth == 'true') OK
-EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'ltr') OK
-
-RUN(video.currentTime = 3.25)
-EVENT(seeked)
-
-** Jump to next cue **
-EXPECTED (video.currentTime == '3.25') OK
-EXPECTED (testTrack.track.activeCues.length == '1') OK
-EXPECTED (testTrack.track.activeCues[0].text == '𐡘 (Imperial Aramaic number one, U+10858) strong RTL, non-BMP') OK
-EXPECTED (testCueDisplayBox.innerText == '𐡘 (Imperial Aramaic number one, U+10858) strong RTL, non-BMP') OK
-
-** The position should be default and CSS direction set to rtl **
-EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayBox.offsetWidth == 'true') OK
-EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'rtl') OK
-
-RUN(video.currentTime = 3.75)
-EVENT(seeked)
-
-** Jump to next cue **
-EXPECTED (video.currentTime == '3.75') OK
-EXPECTED (testTrack.track.activeCues.length == '1') OK
-EXPECTED (testTrack.track.activeCues[0].text == '𝅘𝅥 (Musical symbol quarter note, U+1D15F) strong LTR, non-BMP') OK
-EXPECTED (testCueDisplayBox.innerText == '𝅘𝅥 (Musical symbol quarter note, U+1D15F) strong LTR, non-BMP') OK
-
-** The position should be default and CSS direction set to ltr **
-EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayBox.offsetWidth == 'true') OK
-EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'ltr') OK
-
-RUN(video.currentTime = 4.25)
-EVENT(seeked)
-
-** Jump to next cue **
-EXPECTED (video.currentTime == '4.25') OK
-EXPECTED (testTrack.track.activeCues.length == '1') OK
-EXPECTED (testTrack.track.activeCues[0].text == '𝅘𝅥تجربة') OK
-EXPECTED (testCueDisplayBox.innerText == '𝅘𝅥تجربة') OK
-
-** The position should be default and CSS direction set to rtl **
-EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayBox.offsetWidth == 'true') OK
-EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'rtl') OK
-
-RUN(video.currentTime = 4.75)
-EVENT(seeked)
-
-** Jump to next cue **
-EXPECTED (video.currentTime == '4.75') OK
-EXPECTED (testTrack.track.activeCues.length == '1') OK
-EXPECTED (testTrack.track.activeCues[0].text == '1234تجربة') OK
-EXPECTED (testCueDisplayBox.innerText == '1234تجربة') OK
-
-** The position should be default and CSS direction set to ltr **
-EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayBox.offsetWidth == 'true') OK
-EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'ltr') OK
-END OF TEST
-

Powered by Google App Engine
This is Rietveld 408576698