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

Side by Side 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 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 unified diff | Download patch
OLDNEW
1 Test that directionality is set correctly on cues. 1 Test that directionality is set correctly on cues.
2 2
3 ** RTL cues alternate with LTR cues ** 3 ** RTL cues alternate with LTR cues **
4 EVENT(canplaythrough) 4 EVENT(canplaythrough)
5 EVENT(seeked) 5 EVENT(seeked)
6 6
7 ** Jump to next cue ** 7 ** Jump to next cue **
8 EXPECTED (video.currentTime == '0.25') OK 8 EXPECTED (video.currentTime == '0.25') OK
9 EXPECTED (testTrack.track.activeCues.length == '1') OK 9 EXPECTED (testTrack.track.activeCues.length == '1') OK
10 EXPECTED (testTrack.track.activeCues[0].text == 'تجربة') OK 10 EXPECTED (testTrack.track.activeCues[0].text == 'تجربة') OK
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 ** Jump to next cue ** 72 ** Jump to next cue **
73 EXPECTED (video.currentTime == '2.75') OK 73 EXPECTED (video.currentTime == '2.75') OK
74 EXPECTED (testTrack.track.activeCues.length == '1') OK 74 EXPECTED (testTrack.track.activeCues.length == '1') OK
75 EXPECTED (testTrack.track.activeCues[0].text == ' ०१२३४५६७८९ ') OK 75 EXPECTED (testTrack.track.activeCues[0].text == ' ०१२३४५६७८९ ') OK
76 EXPECTED (testCueDisplayBox.innerText == ' ०१२३४५६७८९ ') OK 76 EXPECTED (testCueDisplayBox.innerText == ' ०१२३४५६७८९ ') OK
77 77
78 ** The position should be default and CSS direction set to ltr ** 78 ** The position should be default and CSS direction set to ltr **
79 EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayB ox.offsetWidth == 'true') OK 79 EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayB ox.offsetWidth == 'true') OK
80 EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'ltr') OK 80 EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'ltr') OK
81
82 RUN(video.currentTime = 3.25)
83 EVENT(seeked)
84
85 ** Jump to next cue **
86 EXPECTED (video.currentTime == '3.25') OK
87 EXPECTED (testTrack.track.activeCues.length == '1') OK
88 EXPECTED (testTrack.track.activeCues[0].text == '𐡘 (Imperial Aramaic number one, U+10858) strong RTL, non-BMP') OK
89 EXPECTED (testCueDisplayBox.innerText == '𐡘 (Imperial Aramaic number one, U+1085 8) strong RTL, non-BMP') OK
90
91 ** The position should be default and CSS direction set to rtl **
92 EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayB ox.offsetWidth == 'true') OK
93 EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'rtl') OK
94
95 RUN(video.currentTime = 3.75)
96 EVENT(seeked)
97
98 ** Jump to next cue **
99 EXPECTED (video.currentTime == '3.75') OK
100 EXPECTED (testTrack.track.activeCues.length == '1') OK
101 EXPECTED (testTrack.track.activeCues[0].text == '𝅘𝅥 (Musical symbol quarter note, U+1D15F) strong LTR, non-BMP') OK
102 EXPECTED (testCueDisplayBox.innerText == '𝅘𝅥 (Musical symbol quarter note, U+1D15 F) strong LTR, non-BMP') OK
103
104 ** The position should be default and CSS direction set to ltr **
105 EXPECTED (2 * testCueDisplayBox.offsetLeft == video.videoWidth - testCueDisplayB ox.offsetWidth == 'true') OK
106 EXPECTED (getComputedStyle(testCueDisplayBox).direction == 'ltr') OK
81 END OF TEST 107 END OF TEST
82 108
OLDNEW
« 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