3 <script src=media-file.js></script>
4 <script src=video-test.js></script>
7 var userGestureInitiated = 0;
10 window.internals.settings.setMediaPlaybackRequiresUserGesture(true);
12 function finishTest(success)
15 window.internals.settings.setMediaPlaybackRequiresUserGesture(false);
20 failTest("<b>Data loaded despite restriction.</b>");
34 consoleWrite("* Calling video.load() should not load any data.");
36 setTimeout(checkLoad, 250);
42 waitForEvent('loadedmetadata', function() { finishTest(false) } );
45 consoleWrite("* Setting video.src, no data should load.");
46 video.src = findMediaFile("video", "content/test");
47 setTimeout(checkLoad, 250);
52 <body onload="start()">
53 <video controls preload=none></video>
54 <p>Test that video.load() should not cause media loading when user gesture is required.</p>