]> source.dussan.org Git - jquery-ui.git/commitdiff
Update wigdet test for previous change. No stored intance via data for
authorjzaefferer <joern.zaefferer@gmail.com>
Mon, 31 Jan 2011 15:37:50 +0000 (16:37 +0100)
committerjzaefferer <joern.zaefferer@gmail.com>
Mon, 31 Jan 2011 15:37:50 +0000 (16:37 +0100)
element == instance.

tests/unit/widget/widget_core.js

index be8a59fb44469801426406a0f2b61387dfa4dbb2..94cd664eb6ea62f2f0830a6cc86ccb2340801445 100644 (file)
@@ -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();
 });