File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,9 @@ test( "ARIA", function() {
34
34
35
35
test ( "widget method" , function ( ) {
36
36
expect ( 1 ) ;
37
- var dialog = $ ( "<div>" ) . appendTo ( "#main " ) . dialog ( ) ;
37
+ var dialog = $ ( "<div>" ) . appendTo ( "#qunit-fixture " ) . dialog ( ) ;
38
38
deepEqual ( dialog . parent ( ) [ 0 ] , dialog . dialog ( "widget" ) [ 0 ] ) ;
39
+ dialog . remove ( ) ;
39
40
} ) ;
40
41
41
42
test ( "focus tabbable" , function ( ) {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ test("element types", function() {
17
17
$ . each ( typeNames , function ( i ) {
18
18
var offsetBefore , offsetAfter ,
19
19
typeName = typeNames [ i ] ,
20
- el = $ ( document . createElement ( typeName ) ) . appendTo ( '#main ' ) ;
20
+ el = $ ( document . createElement ( typeName ) ) . appendTo ( '#qunit-fixture ' ) ;
21
21
22
22
( typeName === 'table' && el . append ( "<tr><td>content</td></tr>" ) ) ;
23
23
el . draggable ( { cancel : '' } ) ;
Original file line number Diff line number Diff line change @@ -599,16 +599,16 @@ test( "#3627 - Ajax tab with url containing a fragment identifier fails to load"
599
599
test ( "#4033 - IE expands hash to full url and misinterprets tab as ajax" , function ( ) {
600
600
expect ( 2 ) ;
601
601
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" ) ;
604
604
element . tabs ( {
605
605
beforeLoad : function ( ) {
606
606
event . preventDefault ( ) ;
607
607
ok ( false , "should not be an ajax tab" ) ;
608
608
}
609
609
} ) ;
610
610
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" ) ;
612
612
state ( element , 1 ) ;
613
613
} ) ;
614
614
You can’t perform that action at this time.
0 commit comments