Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(679)

Unified Diff: LayoutTests/http/tests/permissionclient/video-permissions.html

Issue 27694002: Ability to block <audio> and <video> media. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/permissionclient/video-permissions-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/permissionclient/video-permissions.html
diff --git a/LayoutTests/http/tests/permissionclient/video-permissions.html b/LayoutTests/http/tests/permissionclient/video-permissions.html
new file mode 100644
index 0000000000000000000000000000000000000000..f97ee071685580b32db0c9d913a7b9a7ea577144
--- /dev/null
+++ b/LayoutTests/http/tests/permissionclient/video-permissions.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.dumpPermissionClientCallbacks();
+ testRunner.waitUntilDone();
+}
+
+function log(a)
+{
+ document.getElementById("results").innerHTML += a + "<br>";
+}
+
+function done() {
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+
+function loaded()
+{
+ var video = document.querySelector("video");
+ if (video.duration)
+ log("PASS: video loaded");
+ else
+ log("FAIL: video not loaded");
+ done();
+}
+
+function error()
+{
+ log("FAIL: video loading error");
+ done();
+}
+</script>
+</head>
+<body>
+<p>
+This test checks that all URLs in a redirect chain are passed to the
+PermissionClient.
+</p>
+<video src="http://127.0.0.1:8000/permissionclient/resources/redir.php?url=http://127.0.0.1:8000/media/resources/test.ogv" onerror="error()" onloadeddata="loaded()">
+</video>
+<div id="results"></div>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/permissionclient/video-permissions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698