X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=LayoutTests%2Fhttp%2Ftests%2Fsecurity%2Fframe-loading-via-document-write.html;h=4745e53f3a605ef0d5fab79a355552b85455616f;hp=27976b09e851bfb88e23756ee3ba55bdee532ff8;hb=9f5e46469c20cbab2d3fce67da3eadce052b304e;hpb=cd0dee33e5c97385fea52eabbf32186fc57ed9e0 diff --git a/LayoutTests/http/tests/security/frame-loading-via-document-write.html b/LayoutTests/http/tests/security/frame-loading-via-document-write.html index 27976b09e851..4745e53f3a60 100644 --- a/LayoutTests/http/tests/security/frame-loading-via-document-write.html +++ b/LayoutTests/http/tests/security/frame-loading-via-document-write.html @@ -1,12 +1,16 @@ + <script language="JavaScript"> function buildFrameset() { - if (window.layoutTestController) + if (window.layoutTestController) { layoutTestController.waitUntilDone(); + layoutTestController.dumpAsText(); + layoutTestController.dumpChildFramesAsText(); + } var outHTML="<frameset rows=\"33%, 33%, 33%\">"+ "<frame src=\"\" name=\"topRow\">"+ @@ -25,18 +29,22 @@ function buildFrameset() frames['topRow'].document.open("text/html","replace"); frames['topRow'].document.charset=document.charset; - frames['topRow'].document. write(outHTML); + frames['topRow'].document.write(outHTML); frames['topRow'].document.close(); + var localImageLocation = "file:////tmp/LayoutTests/fast/dom/resources/abe.png"; + if (window.layoutTestController) + localImageLocation = layoutTestController.pathToLocalResource(localImageLocation); + outHTML = "<html><head><scr" + "ipt language=\"JavaScript\" src=\"resources/frame-loading-via-document-write.js\">"+ "</scr" + "ipt></head><body onLoad=\"didImageLoad()\"><table><tr><td>"+ "<div id=\"result\"></div>"+ - "<img src=\"file:////tmp/LayoutTests/fast/dom/resources/abe.png\" id=\"myImg\">"+ + "<img src=\"" + localImageLocation + "\" id=\"myImg\">"+ "</td></tr></table></body></html>"; frames['middleRow'].document.open("text/html","replace"); frames['middleRow'].document.charset=document.charset; - frames['middleRow'].document. write(outHTML); + frames['middleRow'].document.write(outHTML); frames['middleRow'].document.close(); outHTML = "<html><head><scr" + "ipt language=\"JavaScript\" src=\"resources/frame-loading-via-document-write.js\">"+ @@ -47,7 +55,7 @@ function buildFrameset() frames['bottomRow'].document.open("text/html","replace"); frames['bottomRow'].document.charset=document.charset; - frames['bottomRow'].document. write(outHTML); + frames['bottomRow'].document.write(outHTML); frames['bottomRow'].document.close(); }