diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-01 15:03:30 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-01 15:03:30 +0100 |
commit | 5e51b8db284b23bf818148051aaf5b41a7b9c7b1 (patch) | |
tree | 1b7591edd62eb0a94135a1069bbd93ad936a4af1 /tests/unit/widget | |
parent | d901cd416069c153fba627ee9ec6daad2a4f67aa (diff) | |
download | jquery-ui-5e51b8db284b23bf818148051aaf5b41a7b9c7b1.tar.gz jquery-ui-5e51b8db284b23bf818148051aaf5b41a7b9c7b1.zip |
Update Widget data naming/usage. Remove unnecessary fallbacks, update .removeData to use full name.
Diffstat (limited to 'tests/unit/widget')
-rw-r--r-- | tests/unit/widget/widget_core.js | 5 |
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() { |