]> source.dussan.org Git - jquery-ui.git/commitdiff
Widget: Fix typos
authorScott González <scott.gonzalez@gmail.com>
Mon, 10 Nov 2014 13:08:07 +0000 (08:08 -0500)
committerScott González <scott.gonzalez@gmail.com>
Mon, 9 Feb 2015 16:50:48 +0000 (11:50 -0500)
Closes gh-1386
(cherry picked from commit 347b2a5ecd02933c191a13596a5849960f8f4ad2)

tests/unit/widget/widget_core.js

index feafca9428c19e5613ea6b9500f5d30b468a9baf..2b88e39ef222df221ddb6a1a2fe7798f4fb24464 100644 (file)
@@ -50,21 +50,21 @@ test( "element normalization", function() {
        $.ui.testWidget.prototype.defaultElement = "<span data-test='pass'></span>";
        $.ui.testWidget.prototype._create = function() {
                ok( this.element.is( "span[data-test=pass]" ), "generated span with properties" );
-               deepEqual( this.element.testWidget( "instance" ), this, "instace stored in .data()" );
+               deepEqual( this.element.testWidget( "instance" ), this, "instance stored in .data()" );
        };
        $.ui.testWidget();
 
        elem = $( "<input>" );
        $.ui.testWidget.prototype._create = function() {
                deepEqual( this.element[ 0 ], elem[ 0 ], "from element" );
-               deepEqual( elem.testWidget( "instance" ), this, "instace stored in .data()" );
+               deepEqual( elem.testWidget( "instance" ), this, "instance stored in .data()" );
        };
        $.ui.testWidget( {}, elem[ 0 ] );
 
        elem = $( "<div>" );
        $.ui.testWidget.prototype._create = function() {
                deepEqual( this.element[ 0 ], elem[ 0 ], "from jQuery object" );
-               deepEqual( elem.testWidget( "instance" ), this, "instace stored in .data()" );
+               deepEqual( elem.testWidget( "instance" ), this, "instance stored in .data()" );
        };
        $.ui.testWidget( {}, elem );
 
@@ -72,7 +72,7 @@ test( "element normalization", function() {
                .appendTo( "#qunit-fixture" );
        $.ui.testWidget.prototype._create = function() {
                deepEqual( this.element[ 0 ], elem[ 0 ], "from selector" );
-               deepEqual( elem.testWidget( "instance" ), this, "instace stored in .data()" );
+               deepEqual( elem.testWidget( "instance" ), this, "instance stored in .data()" );
        };
        $.ui.testWidget( {}, "#element-normalization-selector" );