From: jzaefferer Date: Mon, 31 Jan 2011 15:37:50 +0000 (+0100) Subject: Update wigdet test for previous change. No stored intance via data for X-Git-Tag: 1.9m4~38^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=effbb2c0ec2e60bea6ec5e5822ee52f8ea9e18bc;p=jquery-ui.git Update wigdet test for previous change. No stored intance via data for element == instance. --- diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js index be8a59fb4..94cd664eb 100644 --- a/tests/unit/widget/widget_core.js +++ b/tests/unit/widget/widget_core.js @@ -24,7 +24,7 @@ test( "widget creation", function() { }); test( "element normalization", function() { - expect( 12 ); + expect( 11 ); var elem; $.widget( "ui.testWidget", {} ); @@ -67,7 +67,6 @@ test( "element normalization", function() { $.ui.testWidget.prototype._create = function() { // using strictEqual throws an error (Maximum call stack size exceeded) ok( this.element[ 0 ] === this, "instance as element" ); - ok( this.element.data( "testWidget" ) === this, "instance stored in .data()" ); }; $.ui.testWidget(); });