Navigation Menu

Skip to content

Commit

Permalink
Use #qunit-fixture instead of deprecated #main. Fixes #7031 - Tests use
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Feb 23, 2011
1 parent 6597d3e commit c37637e
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions tests/unit/accordion/accordio.html
Expand Up @@ -56,7 +56,7 @@

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

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

<div>
<div id="list1" class="foo">
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/accordion/accordion.html
Expand Up @@ -58,7 +58,7 @@

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

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

<div>
<div id="list1" class="foo">
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/autocomplete/autocomplete.html
Expand Up @@ -36,7 +36,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

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

<div id="ac-wrap1" class="ac-wrap"></div>
<div id="ac-wrap2" class="ac-wrap"><input id="autocomplete" class="foo" /></div>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/button/button.html
Expand Up @@ -34,7 +34,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

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


<div><button id="button" class="foo">Label</button></div>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/core/core.html
Expand Up @@ -32,7 +32,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

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

<img src="../images/jqueryui_32x32.png" usemap="#mymap" width="10", height="10">
<map name="mymap">
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/datepicker/datepicker.html
Expand Up @@ -46,7 +46,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

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

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/dialog/dialog.html
Expand Up @@ -50,7 +50,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

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

</body>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/draggable/draggable.html
Expand Up @@ -43,7 +43,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
<div id="qunit-fixture">
<div id="draggable1" style="background: green; width: 200px; height: 100px;">Relative</div>
<div id="draggable2" style="background: green; width: 200px; height: 100px; position: absolute; top: 10px; left: 10px;"><span>Absolute</span></div>
<div style='width: 1px; height: 1000px;'></div>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/droppable/droppable.html
Expand Up @@ -44,7 +44,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
<div id="qunit-fixture">
<div id="draggable1" style="width: 25px; height: 25px;">Draggable</div>
<div id="droppable1" style="width: 100px; height: 100px;">Droppable</div>
<div style='width:1000px;height:1000px;'>&nbsp;</div>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/menu/menu.html
Expand Up @@ -44,7 +44,7 @@
<script type="text/javascript" src="../swarminject.js"></script>

<style>
#main { font-size: 10pt; font-family: 'trebuchet ms', verdana, arial; }
#qunit-fixture { font-size: 10pt; font-family: 'trebuchet ms', verdana, arial; }
#list, #list1 *, #navigation, #navigation * { margin: 0; padding: 0; font-size: 12px; }
.mainOnMoon {position: absolute; top: -10000px; left: -10000px;}
</style>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/position/position.html
Expand Up @@ -30,7 +30,7 @@ <h2 id="qunit-userAgent"></h2>
.height() returns the greater of the height and line-height
-->

<div id="main" style="position: absolute; top: 0; left: 0;">
<div id="qunit-fixture" style="top: 0; left: 0;">
<div id="el1" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
<div id="el2" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
<div id="parent" style="position: absolute; width: 6px; height: 6px; top: 4px; left: 4px; line-height: 6px;"></div>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/progressbar/progressbar.html
Expand Up @@ -34,7 +34,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

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

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/resizable/resizable.html
Expand Up @@ -45,7 +45,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
<div id="qunit-fixture">
<div id="resizable1" style="background: green; width: 100px; height: 100px;">I'm a resizable.</div>
<img src="images/test.jpg" id="resizable2" style="width: 100px; height: 100px;"/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/selectable/selectable.html
Expand Up @@ -43,7 +43,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
<div id="qunit-fixture">
<ul id="selectable1">
<li>Item 1</li>
<li>Item 2</li>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/slider/slider.html
Expand Up @@ -45,7 +45,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
<div id="qunit-fixture">
<div id="slider1"></div>
<div id="slider3" style="position: relative; margin: 40px; width: 217px; height: 28px;">
<div class="ui-slider-handle" style="position: absolute; height: 21px; left: 0px; bottom: 0px; width: 17px;"></div>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/sortable/sortable.html
Expand Up @@ -43,7 +43,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
<div id="qunit-fixture">
<ul id="sortable">
<li>Item 1</li>
<li>Item 2</li>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/tabs/tabs.html
Expand Up @@ -45,7 +45,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

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

<div id="tabs1">
<ul>
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/widget/widget.html
Expand Up @@ -27,7 +27,7 @@ <h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>

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

<div id="widget-wrapper">
<div id="widget">
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/widget/widget_core.js
Expand Up @@ -56,7 +56,7 @@ test( "element normalization", function() {
$.ui.testWidget( {}, elem );

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

0 comments on commit c37637e

Please sign in to comment.