aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2012-06-06 17:38:52 -0400
committerRick Waldron <waldron.rick@gmail.com>2012-06-06 17:38:52 -0400
commitf5d2bc4db14bba1621a2e1a4baf171acfc9add1a (patch)
tree06759b216d791f809c8417e3b84c17d64b7b7ad8 /test/unit
parent4dcd7dd324fe7362842ce805b05f88929655fc79 (diff)
downloadjquery-f5d2bc4db14bba1621a2e1a4baf171acfc9add1a.tar.gz
jquery-f5d2bc4db14bba1621a2e1a4baf171acfc9add1a.zip
Ensure both height and width port functions exist before attempting to run dimensions tests.
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/dimensions.js2
1 files changed, 1 insertions, 1 deletions
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 });