Bug 1546488 - Always use uncached images in test_img_mutations.html; r=jdm
authorEdgar Chen <echen@mozilla.com>
Mon, 29 Apr 2019 15:05:34 +0000
changeset 471835 f7e1b8a24398e572fe25ed0b40d7db6df0f5cc18
parent 471834 7e12e84c87164186044c7a06a72494b469fed1a0
child 471836 31c0dbb08e0c5bc4e9dbc46bca1c7d44bc9331e6
push id112953
push usershindli@mozilla.com
push dateTue, 30 Apr 2019 04:15:04 +0000
treeherdermozilla-inbound@b3612d6d6448 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdm
bugs1546488
milestone68.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 1546488 - Always use uncached images in test_img_mutations.html; r=jdm Differential Revision: https://phabricator.services.mozilla.com/D28971
dom/tests/mochitest/general/test_img_mutations.html
--- a/dom/tests/mochitest/general/test_img_mutations.html
+++ b/dom/tests/mochitest/general/test_img_mutations.html
@@ -11,21 +11,21 @@
     "use strict";
 
     // Tests the relevant mutations part of the spec for img src and srcset
     // and that img.src still behaves by the older spec. (Bug 1076583)
     // https://html.spec.whatwg.org/#relevant-mutations
     SimpleTest.waitForExplicitFinish();
 
     // 50x50 png
-    var testPNG50 = new URL("image_50.png", location).href;
+    var testPNG50 = new URL("image_50.png?noCache=" + Math.random(), location).href;
     // 100x100 png
-    var testPNG100 = new URL("image_100.png", location).href;
+    var testPNG100 = new URL("image_100.png?noCache=" + Math.random(), location).href;
     // 200x200 png
-    var testPNG200 = new URL("image_200.png", location).href;
+    var testPNG200 = new URL("image_200.png?noCache=" + Math.random(), location).href;
 
     var tests = [];
     var img;
     var expectingErrors = 0;
     var expectingLoads = 0;
     var afterExpectCallback;
 
     function onImgLoad() {