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

Unified Diff: chrome/test/data/prerender/prerender_session_storage_conflict.html

Issue 129383002: Better test coverage for prerender sessionStorage merging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO Created 6 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
« no previous file with comments | « chrome/test/data/prerender/prerender_session_storage.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/prerender/prerender_session_storage_conflict.html
diff --git a/chrome/test/data/prerender/prerender_session_storage_conflict.html b/chrome/test/data/prerender/prerender_session_storage_conflict.html
new file mode 100644
index 0000000000000000000000000000000000000000..43fb6b373d29a15bbf147c3ed1785a11941ed5c4
--- /dev/null
+++ b/chrome/test/data/prerender/prerender_session_storage_conflict.html
@@ -0,0 +1,26 @@
+<html>
+<!--
+This is a test of a page whose sessionStorage namespace cannot be merged.
+-->
+<head>
+<title>Prerender Page</title>
+
+<script>
+var pageWasPrerendered = false;
+// Read sessionStorage.value. This should make the merge invalid.
+var sessionStorageValue = sessionStorage.value;
+
+function DidPrerenderPass() {
+ pageWasPrerendered = true;
+ return true;
+}
+
+// Verify the sessionStorage value didn't change.
+function DidDisplayPass() {
+ return !pageWasPrerendered && sessionStorageValue === sessionStorage.value;
+}
+</script>
+
+</head>
+<body></body>
+</html>
« no previous file with comments | « chrome/test/data/prerender/prerender_session_storage.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698