| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-in
line'"> | 4 <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-in
line'"> |
| 5 <link id="target" rel="import" href="resources/importing-cors.html"> | 5 <link id="target" rel="import" href="resources/importing-cors.html"> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <pre id="result"></pre> | 8 <pre id="result"></pre> |
| 9 <!-- FIXME: The test should be renamed to csp-block-import-in-import.html --> |
| 9 <script> | 10 <script> |
| 10 if (window.testRunner) | 11 if (window.testRunner) |
| 11 testRunner.dumpAsText(); | 12 testRunner.dumpAsText(); |
| 12 | 13 |
| 13 if (window.target.import.querySelector('#cors').import != null) | 14 if (window.target.import.querySelector('#cors').import == null) |
| 14 result.innerHTML = "PASS\n"; | 15 result.innerHTML = "PASS\n"; |
| 15 else | 16 else |
| 16 result.innerHTML = "FAIL: The import should be allowed.\n"; | 17 result.innerHTML = "FAIL: The import should be blocked.\n"; |
| 17 </script> | 18 </script> |
| 18 </body> | 19 </body> |
| 19 </html> | 20 </html> |
| OLD | NEW |