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

Unified Diff: chrome/test/data/android/storage_persistance.html

Issue 1465363002: [Storage] Android - ManageSpace UI, Important Origins, and CBD Dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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: chrome/test/data/android/storage_persistance.html
diff --git a/chrome/test/data/android/storage_persistance.html b/chrome/test/data/android/storage_persistance.html
new file mode 100644
index 0000000000000000000000000000000000000000..63ff0ef7da63bbad01084eb0b341e38f93fd7d3a
--- /dev/null
+++ b/chrome/test/data/android/storage_persistance.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+ <script>
+ if (window.location.hash.indexOf('clear') != -1) {
+ localStorage.removeItem('Foo');
+ document.cookie = '';
+ }
+
+ function setStorage() {
+ localStorage.setItem('Foo', 'Bar');
+ document.cookie = 'Foo=Bar';
+ }
+
+ function hasAllStorage() {
+ return localStorage.getItem('Foo') == 'Bar'
+ && document.cookie == 'Foo=Bar';
+ }
+ </script>
+ <body>Test for setting and getting local storage.</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698