From effbb2c0ec2e60bea6ec5e5822ee52f8ea9e18bc Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Mon, 31 Jan 2011 16:37:50 +0100 Subject: [PATCH] Update wigdet test for previous change. No stored intance via data for element == instance. --- tests/unit/widget/widget_core.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); }); -- 2.39.5