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 77491 f19404f45022ac91b38e1214793a32d9b0dec476
parent 77490 1aed3d7236329d85d28d8d06c60b3e527345b012
child 77492 a7fa8429e1f5e840fb77cf2d63726c8dc2b8e109
push id78
push userclegnitto@mozilla.com
push dateFri, 16 Dec 2011 17:32:24 +0000
treeherdermozilla-release@79d24e644fdd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs680431, 511075
milestone9.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 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; };