Update wigdet test for previous change. No stored intance via data for

element == instance.
This commit is contained in:
jzaefferer 2011-01-31 16:37:50 +01:00
parent 03dcdd6373
commit effbb2c0ec

View File

@ -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();
}); });