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

Unified Diff: content/test/data/dom_storage/verify_data.html

Issue 2649963002: Enable mojo localstorage to actually store on disk. (Closed)
Patch Set: add uma Created 3 years, 11 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: content/test/data/dom_storage/verify_data.html
diff --git a/content/test/data/dom_storage/verify_data.html b/content/test/data/dom_storage/verify_data.html
new file mode 100644
index 0000000000000000000000000000000000000000..cc845bb86a6a8af5ad0e499b629c1cadea47f88e
--- /dev/null
+++ b/content/test/data/dom_storage/verify_data.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<script src="common.js"></script>
+<script>
+function test() {
+ let val = window.localStorage['foo'];
+ if (val !== 'bar')
+ fail('Read incorrect value from localStorage. Excpected "bar", got "' + val + '"');
+ else
+ done();
+}
+</script>
+<body onload="setTimeout(test, 0)">
+<div id="status">Starting...<br/></div>

Powered by Google App Engine
This is Rietveld 408576698