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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-cue-negative-timestamp-expected.txt

Issue 1879353002: Convert track tests from video-test.js to testharness.js based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comment Created 4 years, 8 months 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
« no previous file with comments | « third_party/WebKit/LayoutTests/media/track/track-cue-negative-timestamp.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Tests negative timestamps.
2
3 Test that cues with negative startTime are not added:
4 EXPECTED (testTrack.track.cues.length == '4') OK
5 RUN(textCue = new VTTCue(-3439332606, 3.4, 'Sausage?'))
6 RUN(testTrack.track.addCue(textCue))
7 EXPECTED (testTrack.track.cues.length == '4') OK
8
9 Test that cues with negative startTime and negative endTime are not added:
10 EXPECTED (testTrack.track.cues.length == '4') OK
11 RUN(textCue = new VTTCue(-110, -3.4, 'Pepperoni?'))
12 RUN(testTrack.track.addCue(textCue))
13 EXPECTED (testTrack.track.cues.length == '4') OK
14
15 Test that setting startTime and endTime to negative values does not affect the v alue:
16 EXPECTED (testTrack.track.cues[3].startTime == '121') OK
17 RUN(testTrack.track.cues[3].startTime = -5)
18 EXPECTED (testTrack.track.cues[3].startTime == '121') OK
19 EXPECTED (testTrack.track.cues[3].endTime == '361200.5') OK
20 RUN(testTrack.track.cues[3].endTime = -3439332606)
21 EXPECTED (testTrack.track.cues[3].endTime == '361200.5') OK
22 END OF TEST
23
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/media/track/track-cue-negative-timestamp.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698