Bug 1087615 - Always use an uncached image in test_bug347174_write.html. r=mounir
authorSeth Fowler <seth@mozilla.com>
Thu, 06 Nov 2014 17:33:56 -0800
changeset 214438 b843e38a948fa16f15159b49b386d0777cc2a1af
parent 214437 f129b17f906778c9b995a9f9d27682041ff14f9c
child 214439 a28e572e991905f4210eb490aff7c75bb311e766
push id51493
push usermfowler@mozilla.com
push dateFri, 07 Nov 2014 02:17:12 +0000
treeherdermozilla-inbound@f245578c4fa4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmounir
bugs1087615
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1087615 - Always use an uncached image in test_bug347174_write.html. r=mounir
dom/html/test/test_bug347174_write.html
--- a/dom/html/test/test_bug347174_write.html
+++ b/dom/html/test/test_bug347174_write.html
@@ -40,17 +40,18 @@ function frameLoad() {
   is(doc.readyState, "complete", "frame document.readyState should be 'complete' on load");
   showMessage("frame load: " + doc.readyState);
   if (window.loaded) SimpleTest.finish();
 }
 
 function load() {
     window.loaded = true;
 
-    var imgsrc = "<img onload ='window.parent.imgLoad()' src='image.png'>\n";
+    var imgsrc = "<img onload ='window.parent.imgLoad()' src='image.png?noCache="
+               + (new Date().getTime()) + "'>\n";
     var doc = $('iframe').contentWindow.document;
     doc.writeln(imgsrc);
     doc.close();
     showMessage("frame after document.write: " + doc.readyState);
     isnot(doc.readyState, "complete", "frame document.readyState should not be 'complete' after document.write");
 }
 
 function imgLoad() {