Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / security / contentSecurityPolicy / source-list-parsing-07.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src='resources/multiple-iframe-test.js'></script>
5 <script>
6 var tests = [
7     ['no', 'script-src http:/', 'resources/script.js'],
8     ['no', 'script-src http://', 'resources/script.js'],
9     ['no', 'script-src http:/127.0.0.1', 'resources/script.js'],
10     ['no', 'script-src http:///127.0.0.1', 'resources/script.js'],
11     ['no', 'script-src http://127.0.0.1:/', 'resources/script.js'],
12     ['no', 'script-src https://127.?.0.1:*', 'resources/script.js'],
13     ['no', 'script-src https://127.0.0.1:', 'resources/script.js'],
14     ['no', 'script-src \'slef\'', 'resources/script.js'],
15     ['yes','script-src https://127.0.0.1:\t*   ', 'resources/script.js'],
16 ];
17 </script>
18 </head>
19 <body onload="test()">
20   <p>
21     Invalid source expressions should log a console warning, and be ignored.
22   </p>