From 4c8fd0b34946121745dc48e872a3471bda4ff9d7 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Fri, 28 Sep 2012 23:19:38 +1200 Subject: [PATCH] Bug 745788. Work around imagemap bustage by forcing the test image to repaint in order to find its imagemap. r=tbsaunders --- accessible/tests/mochitest/treeupdate/test_imagemap.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/accessible/tests/mochitest/treeupdate/test_imagemap.html b/accessible/tests/mochitest/treeupdate/test_imagemap.html index 6ee44b9ac8f1..a0ea6ec60649 100644 --- a/accessible/tests/mochitest/treeupdate/test_imagemap.html +++ b/accessible/tests/mochitest/treeupdate/test_imagemap.html @@ -324,6 +324,10 @@ map.appendChild(area); this.containerNode.appendChild(map); + + // force repainting of the image + // XXX this is a hack. Fix bug 745788. + document.getElementById(aImageID).style.opacity = 0.8; } this.finalCheck = function insertMap_finalCheck()