diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-12-08 13:19:36 -0500 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2012-12-08 13:19:36 -0500 |
commit | 5dee8dee309564626393e1871991aa2a0e58dd74 (patch) | |
tree | 6aadfd18fca71795200f282dd09e52a4e6fa11bd | |
parent | e83a89dd7df3009d46ddd9e7e1cabf42e901e397 (diff) | |
download | jquery-ui-5dee8dee309564626393e1871991aa2a0e58dd74.tar.gz jquery-ui-5dee8dee309564626393e1871991aa2a0e58dd74.zip |
Dev: Change incorrect references in test suite from #main to #qunit-fixture.
-rw-r--r-- | tests/unit/dialog/dialog_core.js | 3 | ||||
-rw-r--r-- | tests/unit/draggable/draggable_core.js | 2 | ||||
-rw-r--r-- | 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 = $("<div>").appendTo("#main").dialog(); + var dialog = $("<div>").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("<tr><td>content</td></tr>")); 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 = $( "<div><ul><li><a href='#tab'>Tab</a></li></ul><div id='tab'></div></div>" ); - element.appendTo( "#main" ); + var element = $("<div><ul><li><a href='#tab'>Tab</a></li></ul><div id='tab'></div></div>"); + 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 ); }); |