Ensure both height and width port functions exist before attempting to run dimensions tests.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
Rick Waldron 2012-06-06 17:38:52 -04:00
parent 4dcd7dd324
commit f5d2bc4db1

View File

@ -1,4 +1,4 @@
if( jQuery.fn.width ) {
if ( jQuery.fn.width && jQuery.fn.height ) {
module("dimensions", { teardown: moduleTeardown });