From: Ariel Flesler <aflesler@gmail.com>
Date: Mon, 14 Sep 2009 23:28:21 +0000 (+0000)
Subject: testrunner: resetting the scroll position after focusing a field
X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=5e0da8c0365b729f63fbd6d27223776551cb8f46;p=jquery.git

testrunner: resetting the scroll position after focusing a field
---

diff --git a/test/unit/event.js b/test/unit/event.js
index d10b3d3..c641487 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -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");