Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / resources / frame-loading-via-document-write.js
blob3a7a22776006b6974fe2bdb4f19249f52e842b93
1 function clickAnchor()
3 var event = document.createEvent('MouseEvent');
4 event.initEvent( 'click', true, true );
5 document.getElementById('anchorLink').dispatchEvent(event);
8 function didImageLoad()
10 var result = document.getElementById("result");
12 var myImg = document.getElementById("myImg");
13 if (myImg.height == 0 && myImg.width == 0) {
14 result.innerHTML = "Image NOT loaded.";
15 } else {
16 result.innerHTML = "Image loaded.";