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

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

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/platform/chromium/permissionclient/storage-permission.html
diff --git a/LayoutTests/platform/chromium/permissionclient/storage-permission.html b/LayoutTests/platform/chromium/permissionclient/storage-permission.html
deleted file mode 100644
index 6e1168156e4ffac372573a4440c393096208aa6f..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/permissionclient/storage-permission.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<html>
-<head>
-<script>
-
-if (window.testRunner)
- testRunner.dumpAsText();
-
-function log(a)
-{
- document.getElementById("logger").innerHTML += a + "<br>";
-}
-
-function openIframe()
-{
- if (document.createElement && (iframe = document.createElement('iframe'))) {
- document.body.appendChild(iframe);
- return iframe;
- }
-}
-
-function runTest()
-{
- if (!window.localStorage) {
- log("window.localStorage DOES NOT exist");
- return;
- }
-
- localStorage.clear();
-
- if (window.testRunner && testRunner.setStorageAllowed)
- 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);
-
- try {
- log("frame localStorage is accessible " + !!openIframe().contentDocument.defaultView.localStorage);
- } catch(e) {
- log("Caught exception trying to get frame localStorage: " + e);
- }
-}
-
-</script>
-</head>
-<body onload="runTest();">
-This test verifies that all access to localStorage can be blocked<br>
-<div id="logger"></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698