| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="/js-test-resources/js-test.js"></script> | |
| 3 <script> | 2 <script> |
| 3 if (window.testRunner) { |
| 4 testRunner.dumpAsText(); |
| 5 testRunner.waitUntilDone(); |
| 6 } |
| 7 |
| 4 document.cookie = "key=HelloCredentials"; | 8 document.cookie = "key=HelloCredentials"; |
| 9 window.location = "resources/import-cors-credentials-body.html"; |
| 5 </script> | 10 </script> |
| 6 <link id="sameOrigin" rel="import" href="resources/cookie-match.cgi?key=HelloCre
dentials"> | |
| 7 <link id="crossOrigin" rel="import" href="http://localhost:8080/htmlimports/reso
urces/cookie-match.cgi"> | |
| 8 <link id="fromSameToCrossOrigin" rel="import" href="resources/having-cookie-matc
h-8080.html"> | |
| 9 <link id="fromCrossToSameOrigin" rel="import" href="http://localhost:8080/htmlim
ports/resources/having-cookie-match-same.cgi"> | |
| 10 <script> | |
| 11 if (window.testRunner) | |
| 12 testRunner.dumpAsText(); | |
| 13 | |
| 14 shouldBeEqualToString("sameOrigin.import.body.innerHTML", "PASS"); | |
| 15 shouldBeEqualToString("crossOrigin.import.body.innerHTML", "PASS"); | |
| 16 shouldBeEqualToString("fromSameToCrossOrigin.import.getElementById('crossOrigin'
).import.body.innerHTML", "PASS"); | |
| 17 shouldBeEqualToString("fromCrossToSameOrigin.import.getElementById('sameOrigin')
.import.body.innerHTML", "PASS"); | |
| 18 </script> | |
| OLD | NEW |