/home/clopez/webkit/webkit/layout-test-results/media/track/track-datacue-actual.txt

1 Tests DataCue interface
 1CONSOLE MESSAGE: line 12: ReferenceError: Can't find variable: DataCue
 2FAIL: Timed out waiting for notifyDone to be called
23
3 
4 *** Test DataCue's TextTrackCue interface.
5 EXPECTED (cue instanceof '[object TextTrackCueConstructor]') OK
6 EXPECTED (cue.track == 'null') OK
7 EXPECTED (cue.id == '') OK
8 EXPECTED (cue.startTime == '3') OK
9 EXPECTED (cue.endTime == '10') OK
10 EXPECTED (cue.pauseOnExit == 'false') OK
11 
12 *** Test DataCue interface.
13 EXPECTED (cue instanceof '[object DataCueConstructor]') OK
14 EXPECTED (new Uint8Array(cue.data).length == '5') OK
15 EXPECTED (new Uint8Array(cue.data)[0] == '4') OK
16 EXPECTED (new Uint8Array(cue.data)[1] == '5') OK
17 EXPECTED (new Uint8Array(cue.data)[2] == '2') OK
18 EXPECTED (new Uint8Array(cue.data)[3] == '1') OK
19 EXPECTED (new Uint8Array(cue.data)[4] == '9') OK
20 
21 *** Changing the original buffer data should not effect DataCue.data.
22 RUN(expectedData[0] = 7)
23 EXPECTED (new Uint8Array(cue.data)[0] == '4') OK
24 RUN(cue.data = expectedData.buffer)
25 EXPECTED (new Uint8Array(cue.data)[0] == '7') OK
26 RUN(expectedData[0] = 11)
27 EXPECTED (new Uint8Array(cue.data)[0] == '7') OK
28 RUN(new Uint8Array(cue.data)[0] = 8)
29 EXPECTED ((new Uint8Array(cue.data))[0] == '7') OK
30 
31 *** Throw exception if data is not an ArrayBuffer.
32 TEST(cue.data = null) THROWS('TypeError: Type error') OK
33 TEST(cue.data = 'test') THROWS('TypeError: Type error') OK
34 TEST(cue.data = [5]) THROWS('TypeError: Type error') OK
35 TEST(badCue = new DataCue(1, 2, null)) THROWS('TypeError: Type error') OK
36 TEST(badCue = new DataCue(1, 2, 'test')) THROWS('TypeError: Type error') OK
37 TEST(badCue = new DataCue(1, 2, [5])) THROWS('TypeError: Type error') OK
38 
39 *** Test adding DataCue to track with kind = 'metadata'.
40 EXPECTED (cue.track == '[object TextTrack]') OK
41 EXPECTED (metadataTrack.cues[0] == '[object DataCue]') OK
42 
43 *** Test adding DataCue to track with kind != 'metadata'.
44 TEST(track.addCue(cue)) THROWS(DOMException.INVALID_NODE_TYPE_ERR) OK
45 EXPECTED (track.cues.length == '0') OK
46 TEST(track.addCue(cue)) THROWS(DOMException.INVALID_NODE_TYPE_ERR) OK
47 EXPECTED (track.cues.length == '0') OK
48 TEST(track.addCue(cue)) THROWS(DOMException.INVALID_NODE_TYPE_ERR) OK
49 EXPECTED (track.cues.length == '0') OK
50 TEST(track.addCue(cue)) THROWS(DOMException.INVALID_NODE_TYPE_ERR) OK
51 EXPECTED (track.cues.length == '0') OK
52 END OF TEST
53