diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-06-27 11:32:48 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-06-27 11:32:48 -0400 |
commit | 5ae668fdb61dd5e516dc599166a31fd46a916bfd (patch) | |
tree | 002c635b5410177d4de10c2288230fdd0bbcdbab /tests/unit/dialog/dialog_methods.js | |
parent | 9b6c1c5cdb18d76d9febfc079a1cc439dc3789b3 (diff) | |
download | jquery-ui-5ae668fdb61dd5e516dc599166a31fd46a916bfd.tar.gz jquery-ui-5ae668fdb61dd5e516dc599166a31fd46a916bfd.zip |
Tests: Enable QUnit.config.requireExpects.
Diffstat (limited to 'tests/unit/dialog/dialog_methods.js')
-rw-r--r-- | tests/unit/dialog/dialog_methods.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit/dialog/dialog_methods.js b/tests/unit/dialog/dialog_methods.js index 1f84cd6b5..ba0c2bd41 100644 --- a/tests/unit/dialog/dialog_methods.js +++ b/tests/unit/dialog/dialog_methods.js @@ -34,6 +34,8 @@ test("init", function() { }); test("destroy", function() { + expect( 4 ); + $("<div></div>").appendTo('body').dialog().dialog("destroy").remove(); ok(true, '.dialog("destroy") called on element'); @@ -49,6 +51,8 @@ test("destroy", function() { }); test("enable", function() { + expect( 3 ); + var expected = $('<div></div>').dialog(), actual = expected.dialog('enable'); equal(actual, expected, 'enable is chainable'); @@ -60,6 +64,8 @@ test("enable", function() { }); test("disable", function() { + expect( 3 ); + var expected = $('<div></div>').dialog(), actual = expected.dialog('disable'); equal(actual, expected, 'disable is chainable'); @@ -71,6 +77,8 @@ test("disable", function() { }); test("close", function() { + expect( 3 ); + var expected = $('<div></div>').dialog(), actual = expected.dialog('close'); equal(actual, expected, 'close is chainable'); @@ -98,6 +106,8 @@ test("isOpen", function() { }); test("moveToTop", function() { + expect( 3 ); + var d1, d2, dlg1, dlg2, expected = $('<div></div>').dialog(), actual = expected.dialog('moveToTop'); @@ -117,6 +127,7 @@ test("moveToTop", function() { }); test("open", function() { + expect( 3 ); var expected = $('<div></div>').dialog(), actual = expected.dialog('open'); equal(actual, expected, 'open is chainable'); |