Skip to content
Permalink
Browse files

Dev: Change incorrect references in test suite from #main to #qunit-f…

…ixture.
  • Loading branch information...
mikesherov committed Dec 8, 2012
1 parent e83a89d commit 5dee8dee309564626393e1871991aa2a0e58dd74
Showing with 6 additions and 5 deletions.
  1. +2 −1 tests/unit/dialog/dialog_core.js
  2. +1 −1 tests/unit/draggable/draggable_core.js
  3. +3 −3 tests/unit/tabs/tabs_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() {
@@ -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: '' });
@@ -599,16 +599,16 @@ 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();
ok( false, "should not be an ajax tab" );
}
});

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

0 comments on commit 5dee8de

Please sign in to comment.
You can’t perform that action at this time.