blob: edeca1a505bbecaca4c1bf21381319c8d093ded6 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src='resources/multiple-iframe-test.js'></script>
<script>
var tests = [
['yes', 'script-src 127.0.0.1:*/', 'resources/script.js'],
['no', 'script-src 127.0.0.1:*/path', 'resources/script.js'],
['no', 'script-src 127.0.0.1:*/path?query=string', 'resources/script.js'],
['no', 'script-src 127.0.0.1:*/path#anchor', 'resources/script.js'],
['yes', 'script-src 127.0.0.1:8000/', 'resources/script.js'],
['no', 'script-src 127.0.0.1:8000/path', 'resources/script.js'],
['no', 'script-src 127.0.0.1:8000/path?query=string', 'resources/script.js'],
['no', 'script-src 127.0.0.1:8000/path#anchor', 'resources/script.js'],
['no', 'script-src 127.0.0.1:8000/thisisa;pathwithasemicolon', 'resources/script.js'],
['no', 'script-src 127.0.0.1:8000/this is a path with spaces', 'resources/script.js'],
];
</script>
</head>
<body onload="test()">
<p>
Paths should be ignored when evaluating sources. This test passes if FAIL
does not appear in the output, and each of the tests generates a warning
about the path component.
</p>