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

Side by Side Diff: LayoutTests/media/track/track-webvtt-tc022-entities-expected.txt

Issue 66503013: Support the 'lrm', 'rlm' and 'nbsp' entities in the WebVTTTokenizer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 Tests special characters &, <, and > in the cue text. 1 Tests entities in the cue text.
2 2
3 3
4 *** Testing text track 0 4 *** Testing text track 0
5 EXPECTED (cues.length == '3') OK 5 EXPECTED (cues.length == '6') OK
6 EXPECTED (cues[0].getCueAsHTML().textContent == 'This cue has an amp & character .') OK 6 EXPECTED (cues[0].getCueAsHTML().textContent == 'This cue has an amp & character .') OK
7 EXPECTED (cues[1].getCueAsHTML().textContent == 'This cue has a less than < char acter.') OK 7 EXPECTED (cues[1].getCueAsHTML().textContent == 'This cue has a less than < char acter.') OK
8 EXPECTED (cues[2].getCueAsHTML().textContent == 'This cue has a greater than > c haracter.') OK 8 EXPECTED (cues[2].getCueAsHTML().textContent == 'This cue has a greater than > c haracter.') OK
9 EXPECTED (cues[3].getCueAsHTML().textContent == 'This cue has a Left-to-Right Ma rk ‎.') OK
10 EXPECTED (cues[4].getCueAsHTML().textContent == 'This cue has a Right-to-Left Ma rk ‏.') OK
11 EXPECTED (cues[5].getCueAsHTML().textContent == 'This cue has a non-breaking spa ce  .') OK
9 12
10 *** Testing text track 1 13 *** Testing text track 1
11 EXPECTED (cues.length == '3') OK 14 EXPECTED (cues.length == '3') OK
12 EXPECTED (cues[0].getCueAsHTML().textContent == 'This cue has an amp character. Ampersand is ignored.') OK 15 EXPECTED (cues[0].getCueAsHTML().textContent == 'This cue has an amp character. Ampersand is ignored.') OK
13 EXPECTED (cues[1].getCueAsHTML().textContent == 'This cue has a less than ') OK 16 EXPECTED (cues[1].getCueAsHTML().textContent == 'This cue has a less than ') OK
14 EXPECTED (cues[2].getCueAsHTML().textContent == 'This cue has a greater than > c haracter. Since it's not related to a < character, it's just interpreted as text .') OK 17 EXPECTED (cues[2].getCueAsHTML().textContent == 'This cue has a greater than > c haracter. Since it's not related to a < character, it's just interpreted as text .') OK
15 END OF TEST 18 END OF TEST
16 19
OLDNEW
« no previous file with comments | « LayoutTests/media/track/track-webvtt-tc022-entities.html ('k') | Source/core/html/track/WebVTTTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698