Chromium Code Reviews

Unified Diff: LayoutTests/media/video-load-require-user-gesture.html

Issue 144663006: Remove the user gesture restriction for HTMLMediaElement::load() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: keep removeBehaviorsRestrictionsAfterFirstUserGesture() Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | LayoutTests/media/video-load-require-user-gesture-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-load-require-user-gesture.html
diff --git a/LayoutTests/media/video-load-require-user-gesture.html b/LayoutTests/media/video-load-require-user-gesture.html
deleted file mode 100644
index d879f61691bba88dfe5c5bbd2328540a48239506..0000000000000000000000000000000000000000
--- a/LayoutTests/media/video-load-require-user-gesture.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<html>
- <head>
- <script src=media-file.js></script>
- <script src=video-test.js></script>
- <script>
- var state = 0;
- var userGestureInitiated = 0;
-
- if (window.internals)
- window.internals.settings.setMediaPlaybackRequiresUserGesture(true);
-
- function finishTest(success)
- {
- if (success)
- endTest();
- else
- failTest("<b>Data loaded despite restriction.</b>");
- }
-
- function checkLoad()
- {
- consoleWrite("");
-
- if (state == "load")
- {
- finishTest(true);
- return;
- }
-
- state = "load";
- consoleWrite("* Calling video.load() should not load any data.");
- video.load();
- setTimeout(checkLoad, 250);
- }
-
- function start()
- {
- findMediaElement();
- waitForEvent('loadedmetadata', function() { finishTest(false) } );
-
- state = "src";
- consoleWrite("* Setting video.src, no data should load.");
- video.src = findMediaFile("video", "content/test");
- setTimeout(checkLoad, 250);
- }
- </script>
- </head>
-
- <body onload="start()">
- <video controls preload=none></video>
- <p>Test that video.load() should not cause media loading when user gesture is required.</p>
- </body>
-</html>
« no previous file with comments | « no previous file | LayoutTests/media/video-load-require-user-gesture-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine