| Index: third_party/WebKit/LayoutTests/http/tests/security/local-JavaScript-from-remote.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/local-JavaScript-from-remote.html b/third_party/WebKit/LayoutTests/http/tests/security/local-JavaScript-from-remote.html
|
| index 72346fc60e8be296b9a351b796d3c6a26194d94c..f3170cb932a6cf6cbd12ccfa4412fff7eb69d739 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/security/local-JavaScript-from-remote.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/local-JavaScript-from-remote.html
|
| @@ -4,8 +4,10 @@
|
| var secretness = 0;
|
|
|
| function test() {
|
| - if (window.testRunner)
|
| + if (window.testRunner) {
|
| testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| + }
|
|
|
| var localScriptLocation = "file:///tmp/LayoutTests/http/tests/security/resources/localScript.js";
|
| if (window.testRunner)
|
| @@ -19,11 +21,17 @@
|
| tag.innerHTML = "Test Failed. Local script loaded and run.";
|
| else
|
| tag.innerHTML = "Test Failed. Local script loaded, but not successfully run.";
|
| +
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| });
|
|
|
| localScriptElement.addEventListener("error", function() {
|
| var tag = document.getElementById("result");
|
| tag.innerHTML = "Test Passed: Local script not loaded.";
|
| +
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| });
|
|
|
| document.body.appendChild(localScriptElement)
|
|
|