aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/widget/widget_core.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js
index b4bb6356d..e104d4ae9 100644
--- a/tests/unit/widget/widget_core.js
+++ b/tests/unit/widget/widget_core.js
@@ -82,7 +82,7 @@ test( "custom selector expression", function() {
});
test( "jQuery usage", function() {
- expect( 15 );
+ expect( 16 );
var shouldCreate = false;
@@ -140,6 +140,9 @@ test( "jQuery usage", function() {
ret = elem.testWidget( "jQueryObject" );
equal( ret[ 0 ], document.body, "returned jQuery object" );
equal( ret.end(), elem, "stack preserved" );
+
+ elem.testWidget( "destroy" );
+ equal( elem.data( "ui-testWidget" ), null );
});
test( "direct usage", function() {