LayoutTests:
[WebKit-https.git] / LayoutTests / http / tests / security / local-JavaScript-from-remote.html
1 <html>
2 <head>
3         <script>
4             var secretness = 0;
5         </script>
6         <script src="file:///tmp/LayoutTests/http/tests/security/resources/localScript.js"/>
7         <script>
8             function test() {
9                 if (window.layoutTestController)
10                     layoutTestController.dumpAsText();
11
12                 var tag = document.getElementById("result");
13                 if (secretness == 13)
14                     tag.innerHTML = "Test Failed: Local script run remotely";
15                 else
16                     tag.innerHTML = "Test Passed";
17             }
18         </script>
19 </head>
20 <body onload="test()">
21     <div id="div0">
22         This test is to see if a remote file can run a local script.
23     </div>
24     </br>
25     <div id="result">
26             Test not run correctly.
27     </div>
28 </body>
29 </html>