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

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

Issue 747363003: Ignore <rt> children when determining WebVTT text direction (LTR/RTL) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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-rendering-rtl.html ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/track/track-cue-rendering-rtl-expected.txt
diff --git a/LayoutTests/media/track/track-cue-rendering-rtl-expected.txt b/LayoutTests/media/track/track-cue-rendering-rtl-expected.txt
index dda40e442544c7cf31786bcf115c9cc7143bc2e3..719657521cbb20afcbd80253e72bb3c1f6eadf1e 100644
--- a/LayoutTests/media/track/track-cue-rendering-rtl-expected.txt
+++ b/LayoutTests/media/track/track-cue-rendering-rtl-expected.txt
@@ -104,5 +104,31 @@ EXPECTED (testCueDisplayBox.innerText == '𝅘𝅥 (Musical symbol quarter note, U+1
** 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
« no previous file with comments | « LayoutTests/media/track/track-cue-rendering-rtl.html ('k') | Source/core/html/track/vtt/VTTCue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698