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

Side by Side Diff: LayoutTests/http/tests/media/media-source/webkitmediasource-objects-expected.txt

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 Tests MediaSource, SourceBuffer, and SourceBufferList objects. 1 Tests MediaSource, SourceBuffer, and SourceBufferList objects.
2 2
3 EVENT(webkitsourceopen) 3 EVENT(webkitsourceopen)
4 Test MediaSource object type 4 Test MediaSource object type
5 EXPECTED (mediaSource == '[object WebKitMediaSource]') OK 5 EXPECTED (mediaSource == '[object WebKitMediaSource]') OK
6 EXPECTED (mediaSource instanceof window.WebKitMediaSource == 'true') OK 6 EXPECTED (mediaSource instanceof window.WebKitMediaSource == 'true') OK
7 7
8 Add a SourceBuffer 8 Add a SourceBuffer
9 EXPECTED (mediaSource.sourceBuffers.length == '0') OK 9 EXPECTED (mediaSource.sourceBuffers.length == '0') OK
10 RUN(segmentHelper.addSourceBuffer()) 10 RUN(segmentHelper.addSourceBuffer())
(...skipping 24 matching lines...) Expand all
35 EXPECTED (mediaSource.sourceBuffers[0].buffered.length == '2') OK 35 EXPECTED (mediaSource.sourceBuffers[0].buffered.length == '2') OK
36 EXPECTED (mediaSource.sourceBuffers[0].buffered.start(1) == '5') OK 36 EXPECTED (mediaSource.sourceBuffers[0].buffered.start(1) == '5') OK
37 EXPECTED (mediaSource.sourceBuffers[0].buffered.end(1) > '5') OK 37 EXPECTED (mediaSource.sourceBuffers[0].buffered.end(1) > '5') OK
38 38
39 Remove SourceBuffer 39 Remove SourceBuffer
40 RUN(mediaSource.removeSourceBuffer(segmentHelper.sourceBuffer)) 40 RUN(mediaSource.removeSourceBuffer(segmentHelper.sourceBuffer))
41 EXPECTED (mediaSource.sourceBuffers.length == '0') OK 41 EXPECTED (mediaSource.sourceBuffers.length == '0') OK
42 EXPECTED (mediaSource.sourceBuffers == '[object WebKitSourceBufferList]') OK 42 EXPECTED (mediaSource.sourceBuffers == '[object WebKitSourceBufferList]') OK
43 43
44 Test that append() throws an error after SourceBuffer has been removed. 44 Test that append() throws an error after SourceBuffer has been removed.
45 Got expected exception Error: InvalidStateError: DOM Exception 11 45 Got expected exception InvalidStateError: An attempt was made to use an object t hat is not, or is no longer, usable.
46 Test that buffered throws an error after SourceBuffer has been removed. 46 Test that buffered throws an error after SourceBuffer has been removed.
47 Got expected exception Error: InvalidStateError: DOM Exception 11 47 Got expected exception InvalidStateError: An attempt was made to use an object t hat is not, or is no longer, usable.
48 EXPECTED (mediaSource.sourceBuffers.length == '0') OK 48 EXPECTED (mediaSource.sourceBuffers.length == '0') OK
49 Test that addSourceBuffer() throws and error when the MediaSource is not associa ted with a media element. 49 Test that addSourceBuffer() throws and error when the MediaSource is not associa ted with a media element.
50 Got expected exception Error: InvalidStateError: DOM Exception 11 50 Got expected exception InvalidStateError: An attempt was made to use an object t hat is not, or is no longer, usable.
51 Test that setting timestampOffset throws an error when the MediaSource is not as sociated with a media element. 51 Test that setting timestampOffset throws an error when the MediaSource is not as sociated with a media element.
52 Got expected exception Error: InvalidStateError: DOM Exception 11 52 Got expected exception InvalidStateError: An attempt was made to use an object t hat is not, or is no longer, usable.
53 END OF TEST 53 END OF TEST
54 54
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698