OLD | NEW |
1 <button onclick="testSyncCookiesNoCredentials();">Start</button> | 1 <button onclick="testSyncCookiesNoCredentials();">Start</button> |
2 <pre id="console"></pre> | 2 <pre id="console"></pre> |
3 <script> | 3 <script> |
4 if (window.testRunner) { | 4 if (window.testRunner) { |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 testRunner.setCanOpenWindows(); | 7 testRunner.setCanOpenWindows(); |
8 testRunner.setAlwaysAcceptCookies(1); | 8 testRunner.setBlockThirdPartyCookies(false); |
9 } | 9 } |
10 | 10 |
11 function log(message) | 11 function log(message) |
12 { | 12 { |
13 var consoleDiv = document.getElementById('console'); | 13 var consoleDiv = document.getElementById('console'); |
14 consoleDiv.appendChild(document.createTextNode(message + '\n')); | 14 consoleDiv.appendChild(document.createTextNode(message + '\n')); |
15 } | 15 } |
16 | 16 |
17 function resourceURL(resourceName) | 17 function resourceURL(resourceName) |
18 { | 18 { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 var response = checkForCookie(); | 102 var response = checkForCookie(); |
103 log(response.match(/WK\-xhr\-cookie\-storage: MySpecialValue/) ? "PASS: Cook
ie set." : "FAIL: no cookie set."); | 103 log(response.match(/WK\-xhr\-cookie\-storage: MySpecialValue/) ? "PASS: Cook
ie set." : "FAIL: no cookie set."); |
104 log("DONE"); | 104 log("DONE"); |
105 endTesting(); | 105 endTesting(); |
106 } | 106 } |
107 | 107 |
108 if (window.testRunner) | 108 if (window.testRunner) |
109 testSyncCookiesNoCredentials(); | 109 testSyncCookiesNoCredentials(); |
110 </script> | 110 </script> |
111 | |
OLD | NEW |