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

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

Issue 2649963002: Enable mojo localstorage to actually store on disk. (Closed)
Patch Set: Remove Sync() method, and instead make sure browser test waits long enough. Created 3 years, 10 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
« no previous file with comments | « content/test/data/dom_storage/store_data.html ('k') | mojo/public/cpp/bindings/sync_call_restrictions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « content/test/data/dom_storage/store_data.html ('k') | mojo/public/cpp/bindings/sync_call_restrictions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698