| OLD | NEW |
| 1 function cellular_preload_test() { | 1 function cellular_preload_test() { |
| 2 async_test(function(t) { | 2 async_test(function(t) { |
| 3 internals.setNetworkStateNotifierTestOnly(true); | 3 internals.setNetworkConnectionInfoOverride(true, 'cellular3g', 2.0); |
| 4 internals.setNetworkConnectionInfo('cellular3g', 2.0); | |
| 5 | 4 |
| 6 var video = document.querySelector('video'); | 5 var video = document.querySelector('video'); |
| 7 assert_equals(video.preload, 'none') | 6 assert_equals(video.preload, 'none') |
| 8 video.src = 'resources/test-positive-start-time.webm'; | 7 video.src = 'resources/test-positive-start-time.webm'; |
| 9 | 8 |
| 10 video.onsuspend = t.step_func_done(); | 9 video.onsuspend = t.step_func_done(); |
| 11 video.onprogress = t.unreached_func(); | 10 video.onprogress = t.unreached_func(); |
| 12 t.add_cleanup(function() { | 11 t.add_cleanup(function() { |
| 13 internals.setNetworkStateNotifierTestOnly(false); | 12 internals.clearNetworkConnectionInfoOverride(); |
| 14 }); | 13 }); |
| 15 }); | 14 }); |
| 16 } | 15 } |
| OLD | NEW |