Skip to content

Commit c37637e

Browse files
committed
Use #qunit-fixture instead of deprecated #main. Fixes #7031 - Tests use
1 parent 6597d3e commit c37637e

File tree

19 files changed

+21
-21
lines changed

19 files changed

+21
-21
lines changed

tests/unit/accordion/accordio.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
<script src="../swarminject.js"></script>
5858
<style>
59-
#main { font-size: 10pt; font-family: "trebuchet ms", verdana, arial; }
59+
#qunit-fixture { font-size: 10pt; font-family: "trebuchet ms", verdana, arial; }
6060
#list, #list1 *, #navigation, #navigation * { margin: 0; padding: 0; font-size: 12px; }
6161
</style>
6262
</head>
@@ -69,7 +69,7 @@ <h2 id="qunit-userAgent"></h2>
6969
<ol id="qunit-tests">
7070
</ol>
7171

72-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
72+
<div id="qunit-fixture">
7373

7474
<div>
7575
<div id="list1" class="foo">

tests/unit/accordion/accordion.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
<script src="../swarminject.js"></script>
6060
<style>
61-
#main { font-size: 10pt; font-family: "trebuchet ms", verdana, arial; }
61+
#qunit-fixture { font-size: 10pt; font-family: "trebuchet ms", verdana, arial; }
6262
#list, #list1 *, #navigation, #navigation * { margin: 0; padding: 0; font-size: 12px; }
6363
</style>
6464
</head>
@@ -71,7 +71,7 @@ <h2 id="qunit-userAgent"></h2>
7171
<ol id="qunit-tests">
7272
</ol>
7373

74-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
74+
<div id="qunit-fixture">
7575

7676
<div>
7777
<div id="list1" class="foo">

tests/unit/autocomplete/autocomplete.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h2 id="qunit-userAgent"></h2>
3636
<ol id="qunit-tests">
3737
</ol>
3838

39-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
39+
<div id="qunit-fixture">
4040

4141
<div id="ac-wrap1" class="ac-wrap"></div>
4242
<div id="ac-wrap2" class="ac-wrap"><input id="autocomplete" class="foo" /></div>

tests/unit/button/button.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h2 id="qunit-userAgent"></h2>
3434
<ol id="qunit-tests">
3535
</ol>
3636

37-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
37+
<div id="qunit-fixture">
3838

3939

4040
<div><button id="button" class="foo">Label</button></div>

tests/unit/core/core.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h2 id="qunit-userAgent"></h2>
3232
<ol id="qunit-tests">
3333
</ol>
3434

35-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
35+
<div id="qunit-fixture">
3636

3737
<img src="../images/jqueryui_32x32.png" usemap="#mymap" width="10", height="10">
3838
<map name="mymap">

tests/unit/datepicker/datepicker.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h2 id="qunit-userAgent"></h2>
4646
<ol id="qunit-tests">
4747
</ol>
4848

49-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
49+
<div id="qunit-fixture">
5050
<p><input type="text" id="inp"/><input type="text" id="alt"/><div id="inl"></div></p>
5151
</div>
5252

tests/unit/dialog/dialog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h2 id="qunit-userAgent"></h2>
5050
<ol id="qunit-tests">
5151
</ol>
5252

53-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
53+
<div id="qunit-fixture">
5454
</div>
5555

5656
</body>

tests/unit/draggable/draggable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h2 id="qunit-userAgent"></h2>
4343
<ol id="qunit-tests">
4444
</ol>
4545

46-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
46+
<div id="qunit-fixture">
4747
<div id="draggable1" style="background: green; width: 200px; height: 100px;">Relative</div>
4848
<div id="draggable2" style="background: green; width: 200px; height: 100px; position: absolute; top: 10px; left: 10px;"><span>Absolute</span></div>
4949
<div style='width: 1px; height: 1000px;'></div>

tests/unit/droppable/droppable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h2 id="qunit-userAgent"></h2>
4444
<ol id="qunit-tests">
4545
</ol>
4646

47-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
47+
<div id="qunit-fixture">
4848
<div id="draggable1" style="width: 25px; height: 25px;">Draggable</div>
4949
<div id="droppable1" style="width: 100px; height: 100px;">Droppable</div>
5050
<div style='width:1000px;height:1000px;'>&nbsp;</div>

tests/unit/menu/menu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<script type="text/javascript" src="../swarminject.js"></script>
4545

4646
<style>
47-
#main { font-size: 10pt; font-family: 'trebuchet ms', verdana, arial; }
47+
#qunit-fixture { font-size: 10pt; font-family: 'trebuchet ms', verdana, arial; }
4848
#list, #list1 *, #navigation, #navigation * { margin: 0; padding: 0; font-size: 12px; }
4949
.mainOnMoon {position: absolute; top: -10000px; left: -10000px;}
5050
</style>

tests/unit/position/position.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h2 id="qunit-userAgent"></h2>
3030
.height() returns the greater of the height and line-height
3131
-->
3232

33-
<div id="main" style="position: absolute; top: 0; left: 0;">
33+
<div id="qunit-fixture" style="top: 0; left: 0;">
3434
<div id="el1" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
3535
<div id="el2" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
3636
<div id="parent" style="position: absolute; width: 6px; height: 6px; top: 4px; left: 4px; line-height: 6px;"></div>

tests/unit/progressbar/progressbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h2 id="qunit-userAgent"></h2>
3434
<ol id="qunit-tests">
3535
</ol>
3636

37-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
37+
<div id="qunit-fixture">
3838
<div id="progressbar"></div>
3939
</div>
4040

tests/unit/resizable/resizable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h2 id="qunit-userAgent"></h2>
4545
<ol id="qunit-tests">
4646
</ol>
4747

48-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
48+
<div id="qunit-fixture">
4949
<div id="resizable1" style="background: green; width: 100px; height: 100px;">I'm a resizable.</div>
5050
<img src="images/test.jpg" id="resizable2" style="width: 100px; height: 100px;"/>
5151
</div>

tests/unit/selectable/selectable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h2 id="qunit-userAgent"></h2>
4343
<ol id="qunit-tests">
4444
</ol>
4545

46-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
46+
<div id="qunit-fixture">
4747
<ul id="selectable1">
4848
<li>Item 1</li>
4949
<li>Item 2</li>

tests/unit/slider/slider.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h2 id="qunit-userAgent"></h2>
4545
<ol id="qunit-tests">
4646
</ol>
4747

48-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
48+
<div id="qunit-fixture">
4949
<div id="slider1"></div>
5050
<div id="slider3" style="position: relative; margin: 40px; width: 217px; height: 28px;">
5151
<div class="ui-slider-handle" style="position: absolute; height: 21px; left: 0px; bottom: 0px; width: 17px;"></div>

tests/unit/sortable/sortable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h2 id="qunit-userAgent"></h2>
4343
<ol id="qunit-tests">
4444
</ol>
4545

46-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
46+
<div id="qunit-fixture">
4747
<ul id="sortable">
4848
<li>Item 1</li>
4949
<li>Item 2</li>

tests/unit/tabs/tabs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h2 id="qunit-userAgent"></h2>
4545
<ol id="qunit-tests">
4646
</ol>
4747

48-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
48+
<div id="qunit-fixture">
4949

5050
<div id="tabs1">
5151
<ul>

tests/unit/widget/widget.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h2 id="qunit-userAgent"></h2>
2727
<ol id="qunit-tests">
2828
</ol>
2929

30-
<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
30+
<div id="qunit-fixture">
3131

3232
<div id="widget-wrapper">
3333
<div id="widget">

tests/unit/widget/widget_core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ test( "element normalization", function() {
5656
$.ui.testWidget( {}, elem );
5757

5858
elem = $( "<div id='element-normalization-selector'></div>" )
59-
.appendTo( "#main" );
59+
.appendTo( "#qunit-fixture" );
6060
$.ui.testWidget.prototype._create = function() {
6161
same( this.element[ 0 ], elem[ 0 ], "from selector" );
6262
same( elem.data( "testWidget" ), this, "instace stored in .data()" );

0 commit comments

Comments
 (0)