blob: 076d4b2157a5ee20764670c4f44c1024f7d7adf2 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src='resources/multiple-iframe-test.js'></script>
<script>
var tests = [
['no', 'script-src http:/', 'resources/script.js'],
['no', 'script-src http://', 'resources/script.js'],
['no', 'script-src http:/127.0.0.1', 'resources/script.js'],
['no', 'script-src http:///127.0.0.1', 'resources/script.js'],
['no', 'script-src http://127.0.0.1:/', 'resources/script.js'],
['no', 'script-src https://127.?.0.1:*', 'resources/script.js'],
['no', 'script-src https://127.0.0.1:', 'resources/script.js'],
['no', 'script-src \'slef\'', 'resources/script.js'],
['yes','script-src https://127.0.0.1:\t* ', 'resources/script.js'],
];
</script>
</head>
<body onload="test()">
<p>
Invalid source expressions should log a console warning, and be ignored.
</p>