e6bca4099c4ee608aeb1f17a85e0f14d01ae1064
[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-fail.js');
15 } catch (e) {
16    alert(e);
17 }
18 </script>
19 </body>
20 </html>