}\r
\r
function shouldmove(why) {\r
- var handle = $(".ui-dialog-titlebar", el.data("dialog").element);\r
+ var handle = $(".ui-dialog-titlebar", dlg());\r
drag(handle, 50, 50);\r
moved(50, 50, why);\r
}\r
\r
function shouldnotmove(why) {\r
- var handle = $(".ui-dialog-titlebar", el.data("dialog").element);\r
+ var handle = $(".ui-dialog-titlebar", dlg());\r
drag(handle, 50, 50);\r
moved(0, 0, why);\r
}\r
btn.trigger("click");\r
});\r
\r
+test("draggable", function() {\r
+ el = $("<div/>").dialog({ draggable: false });\r
+ shouldnotmove();\r
+ el.remove();\r
+ el = $("<div/>").dialog({ draggable: true });\r
+ shouldmove();\r
+});\r
+\r
module("dialog: Methods");\r
\r
module("dialog: Callbacks");\r