Dev: Change incorrect references in test suite from #main to #qunit-fixture.

This commit is contained in:
Mike Sherov 2012-12-08 13:19:36 -05:00
parent e83a89dd7d
commit 5dee8dee30
3 changed files with 6 additions and 5 deletions

View File

@ -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() {

View File

@ -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: '' });

View File

@ -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 );
});