mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dev: Change incorrect references in test suite from #main to #qunit-fixture.
This commit is contained in:
parent
e83a89dd7d
commit
5dee8dee30
@ -34,8 +34,9 @@ test( "ARIA", function() {
|
|||||||
|
|
||||||
test("widget method", function() {
|
test("widget method", function() {
|
||||||
expect( 1 );
|
expect( 1 );
|
||||||
var dialog = $("<div>").appendTo("#main").dialog();
|
var dialog = $("<div>").appendTo("#qunit-fixture").dialog();
|
||||||
deepEqual(dialog.parent()[0], dialog.dialog("widget")[0]);
|
deepEqual(dialog.parent()[0], dialog.dialog("widget")[0]);
|
||||||
|
dialog.remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
test( "focus tabbable", function() {
|
test( "focus tabbable", function() {
|
||||||
|
@ -17,7 +17,7 @@ test("element types", function() {
|
|||||||
$.each(typeNames, function(i) {
|
$.each(typeNames, function(i) {
|
||||||
var offsetBefore, offsetAfter,
|
var offsetBefore, offsetAfter,
|
||||||
typeName = typeNames[i],
|
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>"));
|
(typeName === 'table' && el.append("<tr><td>content</td></tr>"));
|
||||||
el.draggable({ cancel: '' });
|
el.draggable({ cancel: '' });
|
||||||
|
@ -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() {
|
test( "#4033 - IE expands hash to full url and misinterprets tab as ajax", function() {
|
||||||
expect( 2 );
|
expect( 2 );
|
||||||
|
|
||||||
var element = $( "<div><ul><li><a href='#tab'>Tab</a></li></ul><div id='tab'></div></div>" );
|
var element = $("<div><ul><li><a href='#tab'>Tab</a></li></ul><div id='tab'></div></div>");
|
||||||
element.appendTo( "#main" );
|
element.appendTo("#qunit-fixture");
|
||||||
element.tabs({
|
element.tabs({
|
||||||
beforeLoad: function() {
|
beforeLoad: function() {
|
||||||
event.preventDefault();
|
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 );
|
state( element, 1 );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user