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

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

Issue 81133002: Fix BiDi paragraph embedding level resolution for VTTCue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase after code movements Created 7 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.h » ('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 f528594f1524c28766253d49a91db846416a1802..dda40e442544c7cf31786bcf115c9cc7143bc2e3 100644
--- a/LayoutTests/media/track/track-cue-rendering-rtl-expected.txt
+++ b/LayoutTests/media/track/track-cue-rendering-rtl-expected.txt
@@ -78,5 +78,31 @@ 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
END OF TEST
« no previous file with comments | « LayoutTests/media/track/track-cue-rendering-rtl.html ('k') | Source/core/html/track/vtt/VTTCue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698