4 <meta http-equiv=
"Content-Security-Policy" content=
"script-src 'self' 'unsafe-inline'">
5 <link id=
"selfImport" rel=
"import" href=
"resources/hello.html">
6 <link id=
"nonSelfImport" rel=
"import" href=
"http://localhost:8080/htmlimports/resources/cors-basic.cgi">
9 <pre id=
"result"></pre>
11 if (window
.testRunner
)
12 testRunner
.dumpAsText();
14 if (window
.selfImport
.import != null)
15 result
.innerHTML
+= "PASS\n";
17 result
.innerHTML
+= "FAIL: The import should be allowed.\n";
19 if (window
.nonSelfImport
.import == null)
20 result
.innerHTML
+= "PASS\n";
22 result
.innerHTML
+= "FAIL: The import should be blocked.\n";