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=d193060687a6477d27fd70b36c2c3357cf3e474f;hb=9f5e46469c20cbab2d3fce67da3eadce052b304e;hpb=e9d5734fac00da1eb487562d0740ef508f00675d;ds=sidebyside diff --git a/LayoutTests/http/tests/security/local-JavaScript-from-remote.html b/LayoutTests/http/tests/security/local-JavaScript-from-remote.html index d193060687a6..231258e93c52 100644 --- a/LayoutTests/http/tests/security/local-JavaScript-from-remote.html +++ b/LayoutTests/http/tests/security/local-JavaScript-from-remote.html @@ -1,27 +1,44 @@ - - + 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.