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, 3 insertions, 2 deletions
diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js
index 3268b756d..aff07cc35 100644
--- a/tests/unit/widget/widget_core.js
+++ b/tests/unit/widget/widget_core.js
@@ -615,12 +615,13 @@ test( ".disable()", function() {
});
test( ".widget() - base", function() {
- expect( 1 );
- $.widget( "ui.testWidget", {
+ expect( 2 );
+ var constructor = $.widget( "ui.testWidget", {
_create: function() {}
});
var div = $( "<div>" ).testWidget();
deepEqual( div[0], div.testWidget( "widget" )[0]);
+ deepEqual( constructor, $.ui.testWidget, "$.widget returns the constructor" );
});
test( ".widget() - overriden", function() {