Upstream version 11.40.277.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / security / contentSecurityPolicy / worker-script-src.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline'"/>
5 <script>
6 if (window.testRunner) {
7     testRunner.dumpAsText();
8 }
9 </script>
10 </head>
11 <body>
12 <script>
13 try {
14     var foo = new Worker('http://127.0.0.1:8000/security/contentSecurityPolicy/resources/alert-pass.js');
15     alert("PASS");
16 } catch (e) {
17    alert(e);
18 }
19 </script>
20 </body>
21 </html>