blob: 7e8b91c8ea315b3ba480836733bc25fab280f81e [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<link id="havingDirectiveInMeta" rel="import" href="resources/having-csp-directive.html">
<link id="havingDirectiveInHTTP" rel="import" href="resources/csp-blocking.cgi">
</head>
<body>
<pre id="result"></pre>
<script>
if (window.testRunner)
testRunner.dumpAsText();
if (window.havingDirectiveInMeta.import.querySelector("#shouldBeBlocked").import != null)
result.innerHTML += "PASS\n";
else
result.innerHTML += "FAIL: The import should not be blocked.\n";
if (window.havingDirectiveInHTTP.import.querySelector("#shouldBeBlocked").import != null)
result.innerHTML += "PASS\n";
else
result.innerHTML += "FAIL: The import should not be blocked.\n";
</script>
</body>
</html>