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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <script>
4 if (window.location.hash.indexOf('clear') != -1) {
5 localStorage.removeItem('Foo');
6 document.cookie = '';
7 }
8
9 function setStorage() {
10 localStorage.setItem('Foo', 'Bar');
11 document.cookie = 'Foo=Bar';
12 }
13
14 function hasAllStorage() {
15 return localStorage.getItem('Foo') == 'Bar'
16 && document.cookie == 'Foo=Bar';
17 }
18 </script>
19 <body>Test for setting and getting local storage.</body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698