testrunner: resetting the scroll position after focusing a field
authorAriel Flesler <aflesler@gmail.com>
Mon, 14 Sep 2009 23:28:21 +0000 (23:28 +0000)
committerAriel Flesler <aflesler@gmail.com>
Mon, 14 Sep 2009 23:28:21 +0000 (23:28 +0000)
test/unit/event.js

index d10b3d3..c641487 100644 (file)
@@ -765,6 +765,7 @@ test("live with focus/blur", function(){
 
        child.focus();
        equals(counter, 1, "Test live() with focus event");
+       window.scrollTo(0,0);
 
        child.blur();
        equals(counter, 2, "Test live() with blur event");