diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-04-15 02:33:28 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-04-15 02:33:28 +0000 |
commit | 1195854aaad61308e7f5339eed54f92284d7666e (patch) | |
tree | 5991992a73f910d897967559332a15bd774816d8 /tests/unit/progressbar | |
parent | 3c7b61299333d1ec3f4d4d773b1ec4296129a98e (diff) | |
download | jquery-ui-1195854aaad61308e7f5339eed54f92284d7666e.tar.gz jquery-ui-1195854aaad61308e7f5339eed54f92284d7666e.zip |
Merged in widget-factory branch and added tests. Fixes #4411 - Widget factory should auto detect getters.
Diffstat (limited to 'tests/unit/progressbar')
-rw-r--r-- | tests/unit/progressbar/progressbar_methods.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/progressbar/progressbar_methods.js b/tests/unit/progressbar/progressbar_methods.js index ece100e02..9a162685b 100644 --- a/tests/unit/progressbar/progressbar_methods.js +++ b/tests/unit/progressbar/progressbar_methods.js @@ -14,11 +14,14 @@ test("init", function() { }); test("destroy", function() { - expect(1); + expect(2); $("<div></div>").appendTo('body').progressbar().progressbar("destroy").remove(); ok(true, '.progressbar("destroy") called on element'); + var expected = $('<div></div>').progressbar(), + actual = expected.progressbar('destroy'); + equals(actual, expected, 'destroy is chainable'); }); })(jQuery); |