Bug 680431, this test is calling finish() twice preventing the next test from running, f=smaug
authorNeil Deakin <neil@mozilla.com>
Thu, 29 Sep 2011 16:05:10 -0400
changeset 77877 6cc4966475c2431c24e688580e6946e336552009
parent 77876 8d2df2739eaf0779f1a95e63c14b2f6f04078369
child 77878 df24b0cffd01c94f421de270b93fec010b6b4fb8
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
bugs680431
milestone10.0a1
Bug 680431, this test is calling finish() twice preventing the next test from running, 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; };