From: Krinkle Date: Sun, 16 Oct 2011 22:30:28 +0000 (+0000) Subject: Adding missing test for isEmpty X-Git-Tag: 1.31.0-rc.0~27055 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=77ba9e2cd52754758edbef8be0d10b7eba4d77e1;p=lhc%2Fweb%2Fwiklou.git Adding missing test for isEmpty --- diff --git a/tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js b/tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js index b846b532b1..7a1281d397 100644 --- a/tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js +++ b/tests/qunit/suites/resources/jquery/jquery.mwExtension.test.js @@ -36,6 +36,8 @@ test( 'Is functions', function() { strictEqual( $.isEmpty( 'string' ), false, 'isEmptry: "string"' ); strictEqual( $.isEmpty( '0' ), true, 'isEmptry: "0"' ); + strictEqual( $.isEmpty( '' ), true, 'isEmptry: ""' ); + strictEqual( $.isEmpty( 1 ), false, 'isEmptry: 1' ); strictEqual( $.isEmpty( [] ), true, 'isEmptry: []' ); strictEqual( $.isEmpty( {} ), true, 'isEmptry: {}' );