mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Update wigdet test for previous change. No stored intance via data for
element == instance.
This commit is contained in:
parent
03dcdd6373
commit
effbb2c0ec
@ -24,7 +24,7 @@ test( "widget creation", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test( "element normalization", function() {
|
test( "element normalization", function() {
|
||||||
expect( 12 );
|
expect( 11 );
|
||||||
var elem;
|
var elem;
|
||||||
$.widget( "ui.testWidget", {} );
|
$.widget( "ui.testWidget", {} );
|
||||||
|
|
||||||
@ -67,7 +67,6 @@ test( "element normalization", function() {
|
|||||||
$.ui.testWidget.prototype._create = function() {
|
$.ui.testWidget.prototype._create = function() {
|
||||||
// using strictEqual throws an error (Maximum call stack size exceeded)
|
// using strictEqual throws an error (Maximum call stack size exceeded)
|
||||||
ok( this.element[ 0 ] === this, "instance as element" );
|
ok( this.element[ 0 ] === this, "instance as element" );
|
||||||
ok( this.element.data( "testWidget" ) === this, "instance stored in .data()" );
|
|
||||||
};
|
};
|
||||||
$.ui.testWidget();
|
$.ui.testWidget();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user