blob: 86a4e371182e0bbbbc37bc54c935401acd25c500 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src='resources/multiple-iframe-test.js'></script>
<script>
var tests = [
['yes', 'script-src http://127.0.0.1:*/', 'resources/script.js'],
['no', 'script-src http://127.0.0.1:*/path', 'resources/script.js'],
['no', 'script-src http://127.0.0.1:*/path?query=string', 'resources/script.js'],
['no', 'script-src http://127.0.0.1:*/path#anchor', 'resources/script.js'],
['yes', 'script-src http://127.0.0.1:8000/', 'resources/script.js'],
['no', 'script-src http://127.0.0.1:8000/path', 'resources/script.js'],
['no', 'script-src http://127.0.0.1:8000/path?query=string', 'resources/script.js'],
['no', 'script-src http://127.0.0.1:8000/path#anchor', 'resources/script.js'],
['no', 'script-src http://127.0.0.1:8000/thisisa;pathwithasemicolon', 'resources/script.js'],
['no', 'script-src http://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>