Skip to content
Permalink
Browse files

draggable: tests cleanup, put all elements into #main

  • Loading branch information
jzaefferer committed Sep 15, 2009
1 parent 09fd7fc commit c958e0c7140dee21ec0e9988e2e5e3a41e62e011
Showing with 2 additions and 3 deletions.
  1. +1 −2 tests/unit/draggable/draggable.html
  2. +1 −1 tests/unit/draggable/draggable_options.js
@@ -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);

0 comments on commit c958e0c

Please sign in to comment.
You can’t perform that action at this time.