Bug 1045532 - Update picture mutations test. r=bz
authorJohn Schoenick <jschoenick@mozilla.com>
Wed, 08 Oct 2014 14:01:30 -0700
changeset 212320 1e970084e7c052beae6f10c52c24183ec8afce8e
parent 212319 6187cd66e6614b86d59099acbf34e967a3123ad9
child 212321 5230ba4082a9c838e10c031470c27ca019cb6323
push id27704
push userkwierso@gmail.com
push dateSat, 25 Oct 2014 01:25:30 +0000
treeherdermozilla-central@e37231060eb4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1045532
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 1045532 - Update picture mutations test. r=bz
dom/tests/mochitest/general/test_picture_mutations.html
--- a/dom/tests/mochitest/general/test_picture_mutations.html
+++ b/dom/tests/mochitest/general/test_picture_mutations.html
@@ -228,19 +228,17 @@
         expectEvents(1, 0, function() {
           is(img.currentSrc, testPNG100, "Should still have testPNG100");
 
           // And a valid MQ
           source1.media = "(min-resolution: 3dppx)";
           expectEvents(1, 0, function() {
             // And a valid type...
             source1.type = "image/png";
-            // TODO Will not trigger a load event until bug 1045532 lands.
-            // expectEvents(1, 0, function() {
-            expectEvents(0, 0, function() {
+            expectEvents(1, 0, function() {
               // Finally restore srcset, should trigger load and re-consider source1 which is valid again
               source1.srcset = testPNG50;
               expectEvents(1, 0, function() {
                 is(img.currentSrc, testPNG50, "Should have selected testPNG50");
                 expectEvents(0, 0, nextTest);
               });
             });
           });