| Index: third_party/WebKit/LayoutTests/media/video-preload-cellular-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/media/video-preload-cellular-test.js b/third_party/WebKit/LayoutTests/media/video-preload-cellular-test.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..202f4b0ab64d934d4b0f55cd2e4c8ccdb1a57e50
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/media/video-preload-cellular-test.js
|
| @@ -0,0 +1,16 @@
|
| +function cellular_preload_test() {
|
| + async_test(function(t) {
|
| + internals.setNetworkStateNotifierTestOnly(true);
|
| + internals.setNetworkConnectionInfo('cellular', 2.0);
|
| +
|
| + var video = document.querySelector('video');
|
| + assert_equals(video.preload, 'none')
|
| + video.src = 'resources/test-positive-start-time.webm';
|
| +
|
| + video.onsuspend = t.step_func_done();
|
| + video.onprogress = t.unreached_func();
|
| + t.add_cleanup(function() {
|
| + internals.setNetworkStateNotifierTestOnly(false);
|
| + });
|
| + });
|
| +}
|
|
|