From: Scott González Date: Mon, 27 Aug 2012 00:19:35 +0000 (-0400) Subject: Spinner tests: Added test for widget() method. X-Git-Tag: 1.9.0~51 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=383d0dbfaec3da07c07bf3cb424795c2f1439022;p=jquery-ui.git Spinner tests: Added test for widget() method. --- diff --git a/tests/unit/spinner/spinner_methods.js b/tests/unit/spinner/spinner_methods.js index bafd949a7..af872f257 100644 --- a/tests/unit/spinner/spinner_methods.js +++ b/tests/unit/spinner/spinner_methods.js @@ -163,4 +163,12 @@ test( "value", function() { equal( element.spinner( "value" ), 9, "get value via value method" ); }); +test( "widget", function() { + expect( 2 ); + var element = $( "#spin" ).spinner(), + widgetElement = element.spinner( "widget" ); + equal( widgetElement.length, 1, "one element" ); + strictEqual( widgetElement[ 0 ], element.parent()[ 0 ], "parent element" ); +}); + })( jQuery );