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

Unified Diff: LayoutTests/fast/loader/resources/external-script-URL-location.js

Issue 561813003: Prepare blink to unify definitions of load completion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add document.close() to scroll-left-while-loading.html Created 6 years, 2 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
Index: LayoutTests/fast/loader/resources/external-script-URL-location.js
diff --git a/LayoutTests/fast/loader/resources/external-script-URL-location.js b/LayoutTests/fast/loader/resources/external-script-URL-location.js
index d95f4a2718bde79e6eaff31473a44beb92ab4f7d..13892e84a429ced51f936345308034ff1af9f3cf 100644
--- a/LayoutTests/fast/loader/resources/external-script-URL-location.js
+++ b/LayoutTests/fast/loader/resources/external-script-URL-location.js
@@ -1,9 +1,12 @@
document.open();
document.write("<br>Test 2<br>File in URL: " + leafName(document.URL) + "<br>");
+if (window.testRunner)
+ testRunner.notifyDone();
+
function leafName(url) {
var tokens = new Array();
tokens = url.split('/');
var len = tokens.length;
return tokens[len-1];
-}
+}

Powered by Google App Engine
This is Rietveld 408576698