]> source.dussan.org Git - jquery-ui.git/commitdiff
Draggable: Fix options tests 1618/head
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Sat, 17 Oct 2015 19:12:26 +0000 (15:12 -0400)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Sun, 25 Oct 2015 15:22:40 +0000 (11:22 -0400)
These failed when running through tests/unit/all.html, due to the smaller
iframe. Reducing a browser window enough triggered the same issue. Making
the top offset much smaller fixes that.

The rest is fixing bad indent and adds a missing module call.

tests/unit/draggable/draggable.html
tests/unit/draggable/options.js

index 0971b23250f84d7e398905580f155fc63e777d5a..53468a3a99885b3e7197fcaea18151a4c86f7084 100644 (file)
@@ -48,7 +48,7 @@
        }
        .sortable {
                position: relative;
-               top: 8000px;
+               top: 800px;
                left: 10px;
                width: 300px;
                padding: 0;
        <div style="width: 1px; height: 1000px;"></div>
        <div style="position: absolute; width: 1px; height: 2000px;"></div>
        <ul id="sortable" class="sortable">
-                   <li id="draggableSortable">Item 0</li>
-                   <li id="draggableSortable2">Item 1</li>
-                   <li>Item 2</li>
-                   <li>Item 3</li>
-                 </ul>
-                 <ul id="sortable2" class="sortable">
-                   <li id="draggableSortableClone" class="sortable2Item">Item 0</li>
-                   <li>Item 1</li>
-                   <li>Item 2</li>
-                   <li>Item 3</li>
-                 </ul>
+               <li id="draggableSortable">Item 0</li>
+               <li id="draggableSortable2">Item 1</li>
+               <li>Item 2</li>
+               <li>Item 3</li>
+       </ul>
+       <ul id="sortable2" class="sortable">
+               <li id="draggableSortableClone" class="sortable2Item">Item 0</li>
+               <li>Item 1</li>
+               <li>Item 2</li>
+               <li>Item 3</li>
+       </ul>
 </div>
 
 </body>
index 2c8de5a0ac216a20f5f25ad391ab034867bacc13..2aa5a1ae1b2bd17615adfe169a70d3492be9e20c 100644 (file)
@@ -6,6 +6,8 @@ define( [
        "ui/widgets/sortable"
 ], function( $, testHelper ) {
 
+module( "draggable: options" );
+
 // TODO: This doesn't actually test whether append happened, possibly remove
 test( "{ appendTo: 'parent' }, default, no clone", function() {
        expect( 4 );