haikuwebkit/LayoutTests/media/track/track-webvtt-tc022-entities...

21 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Tests special characters &, <, and > in the cue text.
*** Testing text track 0
EXPECTED (cues.length == '7') OK
EXPECTED (cues[0].getCueAsHTML().textContent == 'This cue has an ampersand character: &') OK
EXPECTED (cues[1].getCueAsHTML().textContent == 'This cue has a less than character: <') OK
EXPECTED (cues[2].getCueAsHTML().textContent == 'This cue has a greater than character: >') OK
EXPECTED (cues[3].getCueAsHTML().textContent == 'This cue has a right-to-left mark (RLM): ') OK
EXPECTED (cues[4].getCueAsHTML().textContent == 'This cue has a left-to-right mark (LRM): ') OK
EXPECTED (cues[5].getCueAsHTML().textContent == 'This cue has a non-breakable space (NBSP):  ') OK
EXPECTED (cues[6].getCueAsHTML().textContent == 'This & is parsed to the same as &.') OK
*** Testing text track 1
EXPECTED (cues.length == '2') OK
EXPECTED (cues[0].getCueAsHTML().textContent == 'This cue has a less than ') OK
EXPECTED (cues[1].getCueAsHTML().textContent == 'This cue has a greater than > character. Since it's not related to a < character, it's just interpreted as text.') OK
END OF TEST