diff options
author | Corey Frang <gnarf@gnarf.net> | 2013-01-30 08:32:48 -0600 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-03-19 16:08:00 +0100 |
commit | 4fce29e9356d7cbe2ccbdc29a391603580e852de (patch) | |
tree | beb7e73d7a1b7fab36229c7992778c77ed56350a /tests | |
parent | 38c7b1ca814c59c48522cda6cfdf054c61773959 (diff) | |
download | jquery-ui-4fce29e9356d7cbe2ccbdc29a391603580e852de.tar.gz jquery-ui-4fce29e9356d7cbe2ccbdc29a391603580e852de.zip |
Widgets: Updating to use instance method on bridge
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/widget/widget_core.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js index 0f6692c3c..eaea8d8be 100644 --- a/tests/unit/widget/widget_core.js +++ b/tests/unit/widget/widget_core.js @@ -626,7 +626,7 @@ test( ".widget() - overriden", function() { }); test( ".instance()", function() { - expect( 1 ); + expect( 2 ); var div, _test = function() {}; @@ -634,7 +634,10 @@ test( ".instance()", function() { _create: function() {}, _test: _test }); - div = $( "<div>" ).testWidget(); + + div = $( "<div>" ); + equal( div.testWidget( "instance" ), undefined ); + div.testWidget(); equal( div.testWidget( "instance" ), div.data( "ui-testWidget" ) ); }); |