blob: d5ff9d2e451a7c778ae98a7f4b29a4b2b46f23aa [file] [log] [blame]
Tests cue line position from settings.
*** Testing text track 0
EXPECTED (cues.length == '7') OK
EXPECTED (cues[0].line == '0') OK
EXPECTED (cues[0].snapToLines == 'false') OK
EXPECTED (cues[1].line == '0') OK
EXPECTED (cues[1].snapToLines == 'true') OK
EXPECTED (cues[2].line == '50.2') OK
EXPECTED (cues[2].snapToLines == 'false') OK
EXPECTED (cues[3].line == '5') OK
EXPECTED (cues[3].snapToLines == 'true') OK
EXPECTED (cues[4].line == '100') OK
EXPECTED (cues[4].snapToLines == 'false') OK
EXPECTED (cues[5].line == '-1') OK
EXPECTED (cues[5].snapToLines == 'true') OK
EXPECTED (cues[6].line == '500') OK
EXPECTED (cues[6].snapToLines == 'true') OK
*** Testing text track 1
EXPECTED (cues.length == '6') OK
EXPECTED (cues[0].line == 'auto') OK
EXPECTED (cues[0].snapToLines == 'true') OK
EXPECTED (cues[1].line == '0.5'), OBSERVED 'auto' FAIL
EXPECTED (cues[1].snapToLines == 'true') OK
EXPECTED (cues[2].line == 'auto') OK
EXPECTED (cues[2].snapToLines == 'true') OK
EXPECTED (cues[3].line == 'auto') OK
EXPECTED (cues[3].snapToLines == 'true') OK
EXPECTED (cues[4].line == 'auto') OK
EXPECTED (cues[4].snapToLines == 'true') OK
EXPECTED (cues[5].line == 'auto') OK
EXPECTED (cues[5].snapToLines == 'true') OK
END OF TEST