Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 function CellularPreloadTest(preloadType) { | |
|
philipj_slow
2015/10/21 11:11:29
LayoutTests/media/video-controls-fullscreen.js sho
DaleCurtis
2015/10/21 22:34:32
lowercase_for_the_win().
| |
| 2 return function(t) { | |
| 3 internals.setNetworkStateNotifierTestOnly(true); | |
| 4 internals.setNetworkConnectionInfo('cellular', 2.0); | |
| 5 | |
| 6 var video = document.createElement('video'); | |
| 7 if (preloadType) | |
| 8 video.preload = preloadType; | |
|
philipj_slow
2015/10/21 11:11:29
After this line, can you also assert_equals(video.
DaleCurtis
2015/10/21 22:34:32
Done.
| |
| 9 video.src = 'resources/test-positive-start-time.webm'; | |
| 10 | |
| 11 video.onsuspend = t.step_func_done(); | |
| 12 video.onprogress = t.unreached_func(); | |
| 13 t.add_cleanup(function() { | |
| 14 internals.setNetworkStateNotifierTestOnly(false); | |
| 15 }); | |
| 16 } | |
| 17 } | |
| OLD | NEW |