Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/local-JavaScript-from-remote.html

Issue 2855733002: Make ClassicPendingScript always become ready asynchronously.
Patch Set: .. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/local-JavaScript-from-remote-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/local-JavaScript-from-remote-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698