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

Side by Side Diff: LayoutTests/http/tests/media/media-source/mediasource-seekable.html

Issue 733453002: Sync the documentation of seekable() with the MediaSource specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | Source/modules/mediasource/MediaSource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="/w3c/resources/testharness.js"></script> 4 <script src="/w3c/resources/testharness.js"></script>
5 <script src="/w3c/resources/testharnessreport.js"></script> 5 <script src="/w3c/resources/testharnessreport.js"></script>
6 <script src="mediasource-util.js"></script> 6 <script src="mediasource-util.js"></script>
7 <link rel="stylesheet" href="/w3c/resources/testharness.css"> 7 <link rel="stylesheet" href="/w3c/resources/testharness.css">
8 </head> 8 </head>
9 <body> 9 <body>
10 <div id="log"></div> 10 <div id="log"></div>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 var midSegment = MediaSourceUtil.extractSegmentData(medi aData, segmentInfo.media[2]); 51 var midSegment = MediaSourceUtil.extractSegmentData(medi aData, segmentInfo.media[2]);
52 test.expectEvent(sourceBuffer, 'update'); 52 test.expectEvent(sourceBuffer, 'update');
53 test.expectEvent(sourceBuffer, 'updateend'); 53 test.expectEvent(sourceBuffer, 'updateend');
54 sourceBuffer.appendBuffer(midSegment); 54 sourceBuffer.appendBuffer(midSegment);
55 test.waitForExpectedEvents(function() 55 test.waitForExpectedEvents(function()
56 { 56 {
57 assert_equals(mediaElement.seekable.length, 1, 'medi aElement.seekable.length'); 57 assert_equals(mediaElement.seekable.length, 1, 'medi aElement.seekable.length');
58 assert_equals(mediaElement.buffered.length, 1, 'medi aElement.buffered.length'); 58 assert_equals(mediaElement.buffered.length, 1, 'medi aElement.buffered.length');
59 assert_equals(mediaElement.seekable.start(0), 0); 59 assert_equals(mediaElement.seekable.start(0), 0);
60 assert_not_equals(mediaElement.seekable.end(0), medi aElement.duration); 60 assert_not_equals(mediaElement.seekable.end(0), medi aElement.duration);
61 assert_not_equals(0, mediaElement.buffered.start(0)) ; 61 assert_not_equals(mediaElement.seekable.end(0), medi aElement.buffered.start(0));
Henrik Steen 2014/11/21 07:46:12 Hmm.. I would rather (or maybe "also") see a test
philipj_slow 2014/11/21 08:33:38 Done.
62 assert_equals(mediaElement.seekable.end(0), mediaEle ment.buffered.end(0)); 62 assert_equals(mediaElement.seekable.end(0), mediaEle ment.buffered.end(0));
63 test.done(); 63 test.done();
64 }); 64 });
65 }); 65 });
66 }); 66 });
67 }, 'Get seekable time ranges on an infinite stream.'); 67 }, 'Get seekable time ranges on an infinite stream.');
68 </script> 68 </script>
69 </body> 69 </body>
70 </html> 70 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/modules/mediasource/MediaSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698