mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Draggable: Fix options tests
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.
This commit is contained in:
parent
800d76ac17
commit
56d6ddc2ba
@ -48,7 +48,7 @@
|
|||||||
}
|
}
|
||||||
.sortable {
|
.sortable {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 8000px;
|
top: 800px;
|
||||||
left: 10px;
|
left: 10px;
|
||||||
width: 300px;
|
width: 300px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -81,17 +81,17 @@
|
|||||||
<div style="width: 1px; height: 1000px;"></div>
|
<div style="width: 1px; height: 1000px;"></div>
|
||||||
<div style="position: absolute; width: 1px; height: 2000px;"></div>
|
<div style="position: absolute; width: 1px; height: 2000px;"></div>
|
||||||
<ul id="sortable" class="sortable">
|
<ul id="sortable" class="sortable">
|
||||||
<li id="draggableSortable">Item 0</li>
|
<li id="draggableSortable">Item 0</li>
|
||||||
<li id="draggableSortable2">Item 1</li>
|
<li id="draggableSortable2">Item 1</li>
|
||||||
<li>Item 2</li>
|
<li>Item 2</li>
|
||||||
<li>Item 3</li>
|
<li>Item 3</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul id="sortable2" class="sortable">
|
<ul id="sortable2" class="sortable">
|
||||||
<li id="draggableSortableClone" class="sortable2Item">Item 0</li>
|
<li id="draggableSortableClone" class="sortable2Item">Item 0</li>
|
||||||
<li>Item 1</li>
|
<li>Item 1</li>
|
||||||
<li>Item 2</li>
|
<li>Item 2</li>
|
||||||
<li>Item 3</li>
|
<li>Item 3</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -6,6 +6,8 @@ define( [
|
|||||||
"ui/widgets/sortable"
|
"ui/widgets/sortable"
|
||||||
], function( $, testHelper ) {
|
], function( $, testHelper ) {
|
||||||
|
|
||||||
|
module( "draggable: options" );
|
||||||
|
|
||||||
// TODO: This doesn't actually test whether append happened, possibly remove
|
// TODO: This doesn't actually test whether append happened, possibly remove
|
||||||
test( "{ appendTo: 'parent' }, default, no clone", function() {
|
test( "{ appendTo: 'parent' }, default, no clone", function() {
|
||||||
expect( 4 );
|
expect( 4 );
|
||||||
|
Loading…
Reference in New Issue
Block a user