From f5d2bc4db14bba1621a2e1a4baf171acfc9add1a Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Wed, 6 Jun 2012 17:38:52 -0400 Subject: [PATCH] Ensure both height and width port functions exist before attempting to run dimensions tests. Signed-off-by: Rick Waldron --- test/unit/dimensions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js index a7463ff28..04411c319 100644 --- a/test/unit/dimensions.js +++ b/test/unit/dimensions.js @@ -1,4 +1,4 @@ -if( jQuery.fn.width ) { +if ( jQuery.fn.width && jQuery.fn.height ) { module("dimensions", { teardown: moduleTeardown }); -- 2.39.5