From ffb96bc97228d4be0750f205ea76f510d220769d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Sat, 26 Feb 2011 13:31:45 +0100 Subject: [PATCH] Widget tests: Work around a bug in jQuery core in IE 9rc. --- tests/unit/widget/widget_core.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js index 837e282c6..319423797 100644 --- a/tests/unit/widget/widget_core.js +++ b/tests/unit/widget/widget_core.js @@ -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()" ); };