]> source.dussan.org Git - jquery-ui.git/commitdiff
Widget tests: Work around a bug in jQuery core in IE 9rc.
authorScott González <scott.gonzalez@gmail.com>
Sat, 26 Feb 2011 12:31:45 +0000 (13:31 +0100)
committerScott González <scott.gonzalez@gmail.com>
Sat, 26 Feb 2011 12:31:45 +0000 (13:31 +0100)
tests/unit/widget/widget_core.js

index 837e282c6d6b6ad6bb6de5b55d8efe7b902c5179..31942379712b8073f45f4669f2785a9416ff6084 100644 (file)
@@ -29,6 +29,8 @@ test( "element normalization", function() {
        $.widget( "ui.testWidget", {} );
 
        $.ui.testWidget.prototype._create = function() {
+               // workaround for core ticket #8381
+               this.element.appendTo( "#qunit-fixture" );
                ok( this.element.is( "div" ), "generated div" );
                same( this.element.data( "testWidget" ), this, "intance stored in .data()" );
        };