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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/resources/frame-loading-via-document-write.js

Issue 2231523002: Make ResourceFetcher return Resources with LoadError instead of nullptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, resolve comment rewrap conflicts. Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/misc/image-blocked-src-change.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 function clickAnchor() 1 function clickAnchor()
2 { 2 {
3 var event = document.createEvent('MouseEvent'); 3 var event = document.createEvent('MouseEvent');
4 event.initEvent( 'click', true, true ); 4 event.initEvent( 'click', true, true );
5 document.getElementById('anchorLink').dispatchEvent(event); 5 document.getElementById('anchorLink').dispatchEvent(event);
6 } 6 }
7 7
8 function didImageLoad() 8 function didImageLoad()
9 { 9 {
10 var result = document.getElementById("result"); 10 var result = document.getElementById("result");
11 11
12 var myImg = document.getElementById("myImg"); 12 var myImg = document.getElementById("myImg");
13 if (myImg.height == 0 && myImg.width == 0) { 13 if (myImg.naturalHeight == 0 && myImg.naturalWidth == 0) {
14 result.innerHTML = "Image NOT loaded."; 14 result.innerHTML = "Image NOT loaded.";
15 } else { 15 } else {
16 result.innerHTML = "Image loaded."; 16 result.innerHTML = "Image loaded.";
17 } 17 }
18 } 18 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/misc/image-blocked-src-change.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698