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

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

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
Index: LayoutTests/media/track/track-cue-rendering-rtl.html
diff --git a/LayoutTests/media/track/track-cue-rendering-rtl.html b/LayoutTests/media/track/track-cue-rendering-rtl.html
index 4606946f60fa9f743f6fac118f28ed3ee9af6996..b0c75f02453bd131cff23f1d21e03efb9b14245a 100644
--- a/LayoutTests/media/track/track-cue-rendering-rtl.html
+++ b/LayoutTests/media/track/track-cue-rendering-rtl.html
@@ -21,7 +21,9 @@
";1234تجربة",
"\t०१२३४५६७८९ \t",
"𐡘 (Imperial Aramaic number one, U+10858) strong RTL, non-BMP",
- "𝅘𝅥 (Musical symbol quarter note, U+1D15F) strong LTR, non-BMP"];
+ "𝅘𝅥 (Musical symbol quarter note, U+1D15F) strong LTR, non-BMP",
+ "<ruby><rt>𝅘𝅥</rt>تجربة</ruby>",
+ "<ruby>1234<rt>تجربة</rt></ruby>"];
function testCueStyle()
{
@@ -37,7 +39,7 @@
testExpected("video.currentTime", (seekedCount / 2) + .25);
testExpected("testTrack.track.activeCues.length", 1);
testExpected("testTrack.track.activeCues[0].text", info[seekedCount]);
- testExpected("testCueDisplayBox.innerText", info[seekedCount]);
+ testExpected("testCueDisplayBox.innerText", info[seekedCount].replace(/<[^>]+>/g, ""));
direction = seekedCount % 2 ? "ltr" : "rtl";
« no previous file with comments | « LayoutTests/media/track/captions-webvtt/captions-rtl.vtt ('k') | LayoutTests/media/track/track-cue-rendering-rtl-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698