X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=LayoutTests%2Fhttp%2Ftests%2Fsecurity%2Flocal-JavaScript-from-remote.html;h=231258e93c52eaadce99d3fce457b60c45e14fa6;hp=8a56d241153caa0b24dd404f819adca149ba965e;hb=9f5e46469c20cbab2d3fce67da3eadce052b304e;hpb=0de8f2c4e2fa01596bb61b116f0801cea4a5d70a diff --git a/LayoutTests/http/tests/security/local-JavaScript-from-remote.html b/LayoutTests/http/tests/security/local-JavaScript-from-remote.html index 8a56d241153c..231258e93c52 100644 --- a/LayoutTests/http/tests/security/local-JavaScript-from-remote.html +++ b/LayoutTests/http/tests/security/local-JavaScript-from-remote.html @@ -1,29 +1,46 @@ - - + tag.innerHTML = "Test Failed. Local script loaded, but not successfully run."; + }); + + localScriptElement.addEventListener("error", function() { + var tag = document.getElementById("result"); + tag.innerHTML = "Test Passed: Local script not loaded."; + }); + + document.body.appendChild(localScriptElement) + } +
This test is to see if a remote file can run a local script. +
+ Currently this test cannot be run manually on Windows because we do not have + a function like pathToLocalResource() outside of DRT. +
-
+
- Test not run correctly. + Test not run correctly.