Skip to content

Commit effbb2c

Browse files
committed
Update wigdet test for previous change. No stored intance via data for
element == instance.
1 parent 03dcdd6 commit effbb2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/unit/widget/widget_core.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test( "widget creation", function() {
2424
});
2525

2626
test( "element normalization", function() {
27-
expect( 12 );
27+
expect( 11 );
2828
var elem;
2929
$.widget( "ui.testWidget", {} );
3030

@@ -67,7 +67,6 @@ test( "element normalization", function() {
6767
$.ui.testWidget.prototype._create = function() {
6868
// using strictEqual throws an error (Maximum call stack size exceeded)
6969
ok( this.element[ 0 ] === this, "instance as element" );
70-
ok( this.element.data( "testWidget" ) === this, "instance stored in .data()" );
7170
};
7271
$.ui.testWidget();
7372
});

0 commit comments

Comments
 (0)