Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / test / data / prerender / prerender_session_storage_conflict.html
blob43fb6b373d29a15bbf147c3ed1785a11941ed5c4
1 <html>
2 <!--
3 This is a test of a page whose sessionStorage namespace cannot be merged.
4 -->
5 <head>
6 <title>Prerender Page</title>
8 <script>
9 var pageWasPrerendered = false;
10 // Read sessionStorage.value. This should make the merge invalid.
11 var sessionStorageValue = sessionStorage.value;
13 function DidPrerenderPass() {
14 pageWasPrerendered = true;
15 return true;
18 // Verify the sessionStorage value didn't change.
19 function DidDisplayPass() {
20 return !pageWasPrerendered && sessionStorageValue === sessionStorage.value;
22 </script>
24 </head>
25 <body></body>
26 </html>