Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 | 7 |
| 8 <link rel='stylesheet' href='/w3c/resources/testharness.css'> | 8 <link rel='stylesheet' href='/w3c/resources/testharness.css'> |
| 9 </head> | 9 </head> |
| 10 <body> | 10 <body> |
| 11 <div id="log"></div> | 11 <div id="log"></div> |
| 12 <script> | 12 <script> |
| 13 // TODO(wolenetz): Remove this hacky console warning once desktop and | |
| 14 // android expectations match. It allows a passing platform-specific | |
| 15 // expectation to override a failing non-platform-specific expectation . | |
| 16 // See https://crbug.com/568704. | |
|
ddorwin
2015/12/15 01:33:32
The bug doesn't explain why we need this warning.
wolenetz
2015/12/15 20:07:20
Bug updated. Bug link portion of comment moved to
| |
| 17 console.warn('Ignore this warning.'); | |
| 18 | |
| 13 mediasource_test(function(test, mediaElement, mediaSource) | 19 mediasource_test(function(test, mediaElement, mediaSource) |
| 14 { | 20 { |
| 15 mediaSource.endOfStream(); | 21 mediaSource.endOfStream(); |
| 16 assert_throws("InvalidStateError", | 22 assert_throws("InvalidStateError", |
| 17 function() { mediaSource.addSourceBuffer(MediaSourceUt il.AUDIO_VIDEO_TYPE); }, | 23 function() { mediaSource.addSourceBuffer(MediaSourceUt il.AUDIO_VIDEO_TYPE); }, |
| 18 "addSourceBuffer() threw an exception when in 'ended' state."); | 24 "addSourceBuffer() threw an exception when in 'ended' state."); |
| 19 test.done(); | 25 test.done(); |
| 20 }, "Test addSourceBuffer() in 'ended' state."); | 26 }, "Test addSourceBuffer() in 'ended' state."); |
| 21 | 27 |
| 22 mediasource_test(function(test, mediaElement, mediaSource) | 28 mediasource_test(function(test, mediaElement, mediaSource) |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 143 reachedLimit = true; | 149 reachedLimit = true; |
| 144 break; | 150 break; |
| 145 } | 151 } |
| 146 } | 152 } |
| 147 assert_true(reachedLimit, "Reached SourceBuffer limit."); | 153 assert_true(reachedLimit, "Reached SourceBuffer limit."); |
| 148 test.done(); | 154 test.done(); |
| 149 }, "Test addSourceBuffer() QuotaExceededError."); | 155 }, "Test addSourceBuffer() QuotaExceededError."); |
| 150 </script> | 156 </script> |
| 151 </body> | 157 </body> |
| 152 </html> | 158 </html> |
| OLD | NEW |