From 67fd40eda7a7f4a9e48afe09593c20bd0e0f9c6f Mon Sep 17 00:00:00 2001
From: Mike Sherov <mike.sherov@gmail.com>
Date: Sat, 19 Oct 2013 11:12:35 -0400
Subject: Tests: extract TestHelpers.forceScrollableWindow for tests that need
 the window to scroll

---
 tests/unit/testsuite.js | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'tests/unit/testsuite.js')

diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js
index 83d69d2d9..13daa7e66 100644
--- a/tests/unit/testsuite.js
+++ b/tests/unit/testsuite.js
@@ -191,6 +191,13 @@ TestHelpers.onFocus= function( element, onFocus ) {
 	element.bind( "focus", fn )[ 0 ].focus();
 };
 
+TestHelpers.forceScrollableWindow = function( appendTo ) {
+	return $( "<div>" ).css({
+		height: "10000px",
+		width: "10000px"
+	}).appendTo( appendTo || "#qunit-fixture" );
+};
+
 /*
  * Taken from https://github.com/jquery/qunit/tree/master/addons/close-enough
  */
-- 
cgit v1.2.3