Bug 680431, test_bug511075.html is calling finish() twice, f-smaug
☠☠ backed out by dbc9ed28ba95 ☠ ☠
authorNeil Deakin <neil@mozilla.com>
Mon, 29 Aug 2011 07:51:35 -0400
changeset 76180 f19404f45022ac91b38e1214793a32d9b0dec476
parent 76179 1aed3d7236329d85d28d8d06c60b3e527345b012
child 76181 a7fa8429e1f5e840fb77cf2d63726c8dc2b8e109
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
bugs680431, 511075
milestone9.0a1
Bug 680431, test_bug511075.html is calling finish() twice, f-smaug
layout/xul/base/test/test_bug511075.html
--- a/layout/xul/base/test/test_bug511075.html
+++ b/layout/xul/base/test/test_bug511075.html
@@ -63,16 +63,17 @@ var tests = [
     nextTest();
     // Click the scrollbar.
     var x = scroller.getBoundingClientRect().width - 5;
     var y = scroller.getBoundingClientRect().height - 50;
     synthesizeMouse(scroller, x, y, { type : "mousedown" }, window);
     synthesizeMouse(scroller, x, y, { type: "mouseup" }, window);
   },
   function() {
+    scroller.onscroll = null;
     ok(true, "Clicking the scrollbar should scroll");
     finish();
   }
 ];
 
 document.onmousedown = function () { return false; };
 document.onmouseup = function () { return true; };