]> source.dussan.org Git - jquery-ui.git/commitdiff
Use #qunit-fixture instead of deprecated #main. Fixes #7031 - Tests use
authorjzaefferer <joern.zaefferer@gmail.com>
Wed, 23 Feb 2011 11:46:13 +0000 (12:46 +0100)
committerjzaefferer <joern.zaefferer@gmail.com>
Wed, 23 Feb 2011 11:46:13 +0000 (12:46 +0100)
19 files changed:
tests/unit/accordion/accordio.html
tests/unit/accordion/accordion.html
tests/unit/autocomplete/autocomplete.html
tests/unit/button/button.html
tests/unit/core/core.html
tests/unit/datepicker/datepicker.html
tests/unit/dialog/dialog.html
tests/unit/draggable/draggable.html
tests/unit/droppable/droppable.html
tests/unit/menu/menu.html
tests/unit/position/position.html
tests/unit/progressbar/progressbar.html
tests/unit/resizable/resizable.html
tests/unit/selectable/selectable.html
tests/unit/slider/slider.html
tests/unit/sortable/sortable.html
tests/unit/tabs/tabs.html
tests/unit/widget/widget.html
tests/unit/widget/widget_core.js

index fdab26de84e1ec804c038ddea5b31fe0803eeba3..22d88e90dc50033f01a4fac850a19ce6dcbe1eac 100644 (file)
@@ -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>
@@ -69,7 +69,7 @@
 <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">
index 60989694cdf7c77e5c36f6d71520c33eb505904c..8eed650732e9434989e947e6e407ee64f92b56f9 100644 (file)
@@ -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>
@@ -71,7 +71,7 @@
 <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">
index f871e3892fccfd1fb28b76c6cfc6fc46e6b57a41..ef9d64baf4f4d6c9cd28fe790d2e3fa64e796229 100644 (file)
@@ -36,7 +36,7 @@
 <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>
index 91910a232aeaff3eb6f9b5f94584193c8b3214a5..6275786540561d0bc805bfaa38991ee8103f6c42 100644 (file)
@@ -34,7 +34,7 @@
 <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>
index ce6663bb08a1242d806a043753c36b7d24fb52a8..fb9cf0a616dd22b2002462fc19afbe5e68174b0d 100644 (file)
@@ -32,7 +32,7 @@
 <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">
index 509f0443e3e5323620ce39ec4b04ddfc00cc6dc1..5a20042de6053dd54d8b98bfaef13d367d84552b 100644 (file)
@@ -46,7 +46,7 @@
 <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>
 
index d76bed8545cbf8eccbac7682075a573fdff93dc4..7d8aafe6c9dfa20265e5d39273bd44f95b7b4338 100644 (file)
@@ -50,7 +50,7 @@
 <ol id="qunit-tests">
 </ol>
 
-<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
+<div id="qunit-fixture">
 </div>
 
 </body>
index a0a0834e3144ee36397fff3ddc17ba81774170d5..bb2b0f7c1c298f5aa80c6aa8a2bbfa33931458cf 100644 (file)
@@ -43,7 +43,7 @@
 <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>
index 2ae6e1b07f8d53a4ccf275524256dc5b5e8f269c..0092647ce9d898dfa85f2e48e24caa4ea3c9707b 100644 (file)
@@ -44,7 +44,7 @@
 <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>
index 625001536efbef9d08ea8ea2486b457fdd0d4c42..d134670cc532cad31f0a545447cccdfc9a55928c 100644 (file)
@@ -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>
index 5413cfdd6d68610ddc4df164efad687478b6ac13..c9a2be82d3537a908de962d5c483c633166fbed5 100644 (file)
@@ -30,7 +30,7 @@ elements smaller than 10px have a line-height set on them to avoid a bug in IE6
 .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>
index 4315fb10347cc98835548c5f93f9eae4ce432178..7ec8d56d7beefcd7fdae5e19b1018d246a436f2f 100644 (file)
@@ -34,7 +34,7 @@
 <ol id="qunit-tests">
 </ol>
 
-<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
+<div id="qunit-fixture">
        <div id="progressbar"></div>
 </div>
 
index d41af42724fb43b1f3489fe57cfb802811bcdaeb..02d95e532f47da2899b0003e48ce84556310c602 100644 (file)
@@ -45,7 +45,7 @@
 <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>
index ea93b24b8c4ecc67967ef9e28327ab8aab9155ee..d3aafe6164a8eeedfbc3c7fe851717510ddc3973 100644 (file)
@@ -43,7 +43,7 @@
 <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>
index 24fb0c0b034d886341e53d8b034d761e7a0a9268..dffdcae6a54ea2dcef1a51c68561377fd07fe629 100644 (file)
@@ -45,7 +45,7 @@
 <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>
index fc1fc72fdf1e4903eb271e7d11991cc06b1de981..f753bf1a49aa3a7dda368e84f1ae1222f0af0642 100644 (file)
@@ -43,7 +43,7 @@
 <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>
index d03104c4ed2f6d093171ed5b293448c435c971c7..507b3182224f0b206dd21e93e4509987e6ddac67 100644 (file)
@@ -45,7 +45,7 @@
 <ol id="qunit-tests">
 </ol>
 
-<div id="main" style="position: absolute; top: -10000px; left: -10000px;">
+<div id="qunit-fixture">
 
                <div id="tabs1">
                        <ul>
index fda543ae0f7d7e6481aa0164435e637268d6f804..c3b9bfe954446b2c6c096de7e802c49876e718e3 100644 (file)
@@ -27,7 +27,7 @@
 <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">
index 11325140f54262bfc0963888782e1e29e70cada4..837e282c6d6b6ad6bb6de5b55d8efe7b902c5179 100644 (file)
@@ -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()" );