diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-07-30 14:26:58 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-07-30 14:26:58 +0200 |
commit | ea58cd5ac0d852a9c7d7ceadbcbb74006cf9052d (patch) | |
tree | 35cff2c8f0505cf9b5430b33df0ff7ab5c85dc59 /tests/unit/dialog/dialog_methods.js | |
parent | b3940d2f78dfcc37792ceb97e5659b78f156794c (diff) | |
download | jquery-ui-ea58cd5ac0d852a9c7d7ceadbcbb74006cf9052d.tar.gz jquery-ui-ea58cd5ac0d852a9c7d7ceadbcbb74006cf9052d.zip |
Use pushStack in widget method. Fixes #5732 - make the widget method maintain the stack
Diffstat (limited to 'tests/unit/dialog/dialog_methods.js')
-rw-r--r-- | tests/unit/dialog/dialog_methods.js | 6 |
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); |