Skip to content

Commit 5dee8de

Browse files
committed
Dev: Change incorrect references in test suite from #main to #qunit-fixture.
1 parent e83a89d commit 5dee8de

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

tests/unit/dialog/dialog_core.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ test( "ARIA", function() {
3434

3535
test("widget method", function() {
3636
expect( 1 );
37-
var dialog = $("<div>").appendTo("#main").dialog();
37+
var dialog = $("<div>").appendTo("#qunit-fixture").dialog();
3838
deepEqual(dialog.parent()[0], dialog.dialog("widget")[0]);
39+
dialog.remove();
3940
});
4041

4142
test( "focus tabbable", function() {

tests/unit/draggable/draggable_core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test("element types", function() {
1717
$.each(typeNames, function(i) {
1818
var offsetBefore, offsetAfter,
1919
typeName = typeNames[i],
20-
el = $(document.createElement(typeName)).appendTo('#main');
20+
el = $(document.createElement(typeName)).appendTo('#qunit-fixture');
2121

2222
(typeName === 'table' && el.append("<tr><td>content</td></tr>"));
2323
el.draggable({ cancel: '' });

tests/unit/tabs/tabs_core.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -599,16 +599,16 @@ test( "#3627 - Ajax tab with url containing a fragment identifier fails to load"
599599
test( "#4033 - IE expands hash to full url and misinterprets tab as ajax", function() {
600600
expect( 2 );
601601

602-
var element = $( "<div><ul><li><a href='#tab'>Tab</a></li></ul><div id='tab'></div></div>" );
603-
element.appendTo( "#main" );
602+
var element = $("<div><ul><li><a href='#tab'>Tab</a></li></ul><div id='tab'></div></div>");
603+
element.appendTo("#qunit-fixture");
604604
element.tabs({
605605
beforeLoad: function() {
606606
event.preventDefault();
607607
ok( false, "should not be an ajax tab" );
608608
}
609609
});
610610

611-
equal( element.find( ".ui-tabs-nav li" ).attr( "aria-controls" ), "tab", "aria-contorls attribute is correct" );
611+
equal( element.find(".ui-tabs-nav li").attr("aria-controls"), "tab", "aria-contorls attribute is correct" );
612612
state( element, 1 );
613613
});
614614

0 commit comments

Comments
 (0)