OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <link id="havingDirective" rel="import" href="resources/having-csp-directive.htm
l"> |
| 5 <link id="havingDirectiveOverCors" rel="import" href="http://localhost:8000/html
imports/resources/cors-csp-blocking.cgi"> |
| 6 </head> |
| 7 <body> |
| 8 <pre id="result"></pre> |
| 9 <script> |
| 10 if (window.testRunner) |
| 11 testRunner.dumpAsText(); |
| 12 |
| 13 if (window.havingDirective.import.querySelector("#shouldBeImported").import != n
ull) |
| 14 result.innerHTML += "PASS\n"; |
| 15 else |
| 16 result.innerHTML += "FAIL: The import should be allowed.\n"; |
| 17 |
| 18 if (window.havingDirectiveOverCors.import.querySelector("#shouldBeImported").imp
ort != null) |
| 19 result.innerHTML += "PASS\n"; |
| 20 else |
| 21 result.innerHTML += "FAIL: The import should be allowed.\n"; |
| 22 |
| 23 </script> |
| 24 </body> |
| 25 </html> |
OLD | NEW |