mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
draggable: tests cleanup, put all elements into #main
This commit is contained in:
parent
09fd7fc1fa
commit
c958e0c714
@ -25,9 +25,8 @@
|
||||
<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>
|
||||
<div style="position: absolute; width: 1px; height: 2000px;"></div>
|
||||
</div>
|
||||
|
||||
<div style="width: 1px; height: 2000px;"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -93,7 +93,7 @@ test("{ axis: ? }, unexpected", function() {
|
||||
test("{ cancel: ':input,option' }, default", function() {
|
||||
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" });
|
||||
drag("#draggable-option-cancel-default", 50, 50);
|
||||
|
Loading…
Reference in New Issue
Block a user