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

Unified Diff: LayoutTests/permissionclient/storage-permission.html

Issue 27694002: Ability to block <audio> and <video> media. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Better rebase. 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
Index: LayoutTests/permissionclient/storage-permission.html
diff --git a/LayoutTests/permissionclient/storage-permission.html b/LayoutTests/permissionclient/storage-permission.html
index 6e1168156e4ffac372573a4440c393096208aa6f..df6ba186c8c463806a4165a184ff397e9657e1be 100644
--- a/LayoutTests/permissionclient/storage-permission.html
+++ b/LayoutTests/permissionclient/storage-permission.html
@@ -1,3 +1,4 @@
+<!DOCTYPE html>
<html>
<head>
<script>
@@ -17,7 +18,7 @@ function openIframe()
return iframe;
}
}
-
+
function runTest()
{
if (!window.localStorage) {
@@ -31,16 +32,16 @@ function runTest()
testRunner.setStorageAllowed(true);
else
log("This test requires testRunner.setStorageAllowed, so it be can't run in a browser.");
-
+
log("Length is " + localStorage.length);
log("Value for FOO is " + localStorage.getItem("FOO"));
localStorage.setItem("FOO", "BAR");
-
+
log("Length is " + localStorage.length);
log("Value for FOO is " + localStorage.getItem("FOO"));
log("Key for index 0 is " + localStorage.key(0));
-
+
log("Disabling localStorage access.");
if (window.testRunner && testRunner.setStorageAllowed)
testRunner.setStorageAllowed(false);

Powered by Google App Engine
This is Rietveld 408576698