diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2012-06-06 17:38:52 -0400 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2012-06-06 17:38:52 -0400 |
commit | f5d2bc4db14bba1621a2e1a4baf171acfc9add1a (patch) | |
tree | 06759b216d791f809c8417e3b84c17d64b7b7ad8 /test/unit | |
parent | 4dcd7dd324fe7362842ce805b05f88929655fc79 (diff) | |
download | jquery-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.js | 2 |
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 }); |