From 5dee8dee309564626393e1871991aa2a0e58dd74 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Sat, 8 Dec 2012 13:19:36 -0500 Subject: [PATCH] Dev: Change incorrect references in test suite from #main to #qunit-fixture. --- tests/unit/dialog/dialog_core.js | 3 ++- tests/unit/draggable/draggable_core.js | 2 +- tests/unit/tabs/tabs_core.js | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/unit/dialog/dialog_core.js b/tests/unit/dialog/dialog_core.js index 700208dfc..f10087912 100644 --- a/tests/unit/dialog/dialog_core.js +++ b/tests/unit/dialog/dialog_core.js @@ -34,8 +34,9 @@ test( "ARIA", function() { test("widget method", function() { expect( 1 ); - var dialog = $("
").appendTo("#main").dialog(); + var dialog = $("
").appendTo("#qunit-fixture").dialog(); deepEqual(dialog.parent()[0], dialog.dialog("widget")[0]); + dialog.remove(); }); test( "focus tabbable", function() { diff --git a/tests/unit/draggable/draggable_core.js b/tests/unit/draggable/draggable_core.js index 28a19f380..66628465b 100644 --- a/tests/unit/draggable/draggable_core.js +++ b/tests/unit/draggable/draggable_core.js @@ -17,7 +17,7 @@ test("element types", function() { $.each(typeNames, function(i) { var offsetBefore, offsetAfter, typeName = typeNames[i], - el = $(document.createElement(typeName)).appendTo('#main'); + el = $(document.createElement(typeName)).appendTo('#qunit-fixture'); (typeName === 'table' && el.append("content")); el.draggable({ cancel: '' }); diff --git a/tests/unit/tabs/tabs_core.js b/tests/unit/tabs/tabs_core.js index 20364a37d..5f70206dc 100644 --- a/tests/unit/tabs/tabs_core.js +++ b/tests/unit/tabs/tabs_core.js @@ -599,8 +599,8 @@ test( "#3627 - Ajax tab with url containing a fragment identifier fails to load" test( "#4033 - IE expands hash to full url and misinterprets tab as ajax", function() { expect( 2 ); - var element = $( "
" ); - element.appendTo( "#main" ); + var element = $("
"); + element.appendTo("#qunit-fixture"); element.tabs({ beforeLoad: function() { event.preventDefault(); @@ -608,7 +608,7 @@ test( "#4033 - IE expands hash to full url and misinterprets tab as ajax", funct } }); - equal( element.find( ".ui-tabs-nav li" ).attr( "aria-controls" ), "tab", "aria-contorls attribute is correct" ); + equal( element.find(".ui-tabs-nav li").attr("aria-controls"), "tab", "aria-contorls attribute is correct" ); state( element, 1 ); }); -- 2.39.5