position: 'center',\r
resizable: true,\r
stack: true,\r
- title: null,\r
+ title: '',\r
width: 300\r
};\r
\r
\r
module("dialog: Methods");\r
\r
+test("isOpen", function() {\r
+ expect(4);\r
+ el = $('<div/>').dialog();\r
+ equals(el.dialog('isOpen'), true, "dialog is open after init");\r
+ el.dialog('close');\r
+ equals(el.dialog('isOpen'), false, "dialog is closed");\r
+ el.remove();\r
+ \r
+ el = $('<div/>').dialog({autoOpen: false});\r
+ equals(el.dialog('isOpen'), false, "dialog is closed after init");\r
+ el.dialog('open');\r
+ equals(el.dialog('isOpen'), true, "dialog is open");\r
+ el.remove();\r
+});\r
+\r
module("dialog: Callbacks");\r
\r
test("open", function() {\r