blob: ed3a6da5b8b20f322affdee1669b06644ca6d33a [file] [log] [blame]
Tests cue alignment, line and text position from settings.
*** Testing text track 0
EXPECTED (cues.length == '5') OK
EXPECTED (cues[0].align == 'start') OK
EXPECTED (cues[0].position == '10') OK
EXPECTED (cues[0].line == '0') OK
EXPECTED (cues[0].snapToLines == 'false') OK
EXPECTED (cues[1].align == 'start') OK
EXPECTED (cues[1].position == 'auto') OK
EXPECTED (cues[1].line == '0') OK
EXPECTED (cues[1].snapToLines == 'true') OK
EXPECTED (cues[2].align == 'center') OK
EXPECTED (cues[2].position == '80.3') OK
EXPECTED (cues[2].line == '80.08') OK
EXPECTED (cues[2].snapToLines == 'false') OK
EXPECTED (cues[3].align == 'end') OK
EXPECTED (cues[3].position == '30') OK
EXPECTED (cues[3].line == '5') OK
EXPECTED (cues[3].snapToLines == 'true') OK
EXPECTED (cues[4].align == 'center') OK
EXPECTED (cues[4].position == '60') OK
EXPECTED (cues[4].line == '-3') OK
EXPECTED (cues[4].snapToLines == 'true') OK
*** Testing text track 1
EXPECTED (cues.length == '3') OK
EXPECTED (cues[0].align == 'center') OK
EXPECTED (cues[0].position == 'auto') OK
EXPECTED (cues[0].line == 'auto') OK
EXPECTED (cues[0].snapToLines == 'true') OK
EXPECTED (cues[1].align == 'end') OK
EXPECTED (cues[1].position == '0') OK
EXPECTED (cues[1].line == 'auto') OK
EXPECTED (cues[1].snapToLines == 'true') OK
EXPECTED (cues[2].align == 'center') OK
EXPECTED (cues[2].position == '60') OK
EXPECTED (cues[2].line == '-3') OK
EXPECTED (cues[2].snapToLines == 'true') OK
END OF TEST