aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/dialog/dialog_methods.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/dialog/dialog_methods.js')
-rw-r--r--tests/unit/dialog/dialog_methods.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/dialog/dialog_methods.js b/tests/unit/dialog/dialog_methods.js
index 93d1b25db..e4b77aa0b 100644
--- a/tests/unit/dialog/dialog_methods.js
+++ b/tests/unit/dialog/dialog_methods.js
@@ -130,4 +130,10 @@ test("open", function() {
ok(dlg().is(':visible') && !dlg().is(':hidden'), 'dialog visible after open method called');
});
+test("widget", function() {
+ var dialog = $('<div></div>').dialog();
+ same(dialog.dialog("widget")[0], dialog.parent()[0]);
+ same(dialog.dialog("widget").end()[0], dialog[0]);
+});
+
})(jQuery);