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

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

Issue 695943002: Reland "Prepare blink to unify definitions of load completion" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 document.open(); 1 document.open();
2 document.write("<br>Test 2<br>File in URL: " + leafName(document.URL) + "<br>"); 2 document.write("<br>Test 2<br>File in URL: " + leafName(document.URL) + "<br>");
3 3
4 if (window.testRunner)
5 testRunner.notifyDone();
6
4 function leafName(url) { 7 function leafName(url) {
5 var tokens = new Array(); 8 var tokens = new Array();
6 tokens = url.split('/'); 9 tokens = url.split('/');
7 var len = tokens.length; 10 var len = tokens.length;
8 return tokens[len-1]; 11 return tokens[len-1];
9 } 12 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698