Upstream version 10.38.222.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / security / cross-origin-worker-websql-allowed.html
1 <html>
2 <head>
3 <script>
4 var frames = 2;
5 if (window.testRunner) {
6         testRunner.dumpAsText();
7         testRunner.dumpChildFramesAsText();
8         testRunner.waitUntilDone();
9 }
10
11 function decrement() {
12         --frames;
13         if (!frames && window.testRunner)
14                 testRunner.notifyDone();
15 }
16
17 window.onmessage = decrement;
18 </script>
19 </head>
20 <body>
21 <p>This iframe should not return any errors:</p>
22 <iframe src="http://localhost:8000/security/resources/cross-origin-iframe-for-worker-websql.html"></iframe>
23 <p>This iframe should not return any errors:</p>
24 <iframe src="http://127.0.0.1:8000/security/resources/cross-origin-iframe-for-worker-websql.html"></iframe>
25 </body>
26 </html>