draggable: tests cleanup, put all elements into #main

This commit is contained in:
Jörn Zaefferer 2009-09-15 08:37:22 +00:00
parent 09fd7fc1fa
commit c958e0c714
2 changed files with 2 additions and 3 deletions

View File

@ -25,9 +25,8 @@
<div id="draggable1" style="background: green; width: 200px; height: 100px;">Relative</div> <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 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> <div style='width: 1px; height: 1000px;'></div>
<div style="position: absolute; width: 1px; height: 2000px;"></div>
</div> </div>
<div style="width: 1px; height: 2000px;"></div>
</body> </body>
</html> </html>

View File

@ -93,7 +93,7 @@ test("{ axis: ? }, unexpected", function() {
test("{ cancel: ':input,option' }, default", function() { test("{ cancel: ':input,option' }, default", function() {
equals(draggable_defaults.cancel, ":input,option"); equals(draggable_defaults.cancel, ":input,option");
$('<div id="draggable-option-cancel-default"><input type="text"></div>').appendTo('body'); $('<div id="draggable-option-cancel-default"><input type="text"></div>').appendTo('#main');
el = $("#draggable-option-cancel-default").draggable({ cancel: ":input,option" }); el = $("#draggable-option-cancel-default").draggable({ cancel: ":input,option" });
drag("#draggable-option-cancel-default", 50, 50); drag("#draggable-option-cancel-default", 50, 50);