diff options
Diffstat (limited to 'tests/unit/dialog/dialog_events.js')
-rw-r--r-- | tests/unit/dialog/dialog_events.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/dialog/dialog_events.js b/tests/unit/dialog/dialog_events.js index 805bbd535..70bf434b7 100644 --- a/tests/unit/dialog/dialog_events.js +++ b/tests/unit/dialog/dialog_events.js @@ -186,12 +186,12 @@ test("close", function() { el.remove(); }); -test("beforeclose", function() { +test("beforeClose", function() { expect(9); el = $('<div></div>').dialog({ - beforeclose: function(ev, ui) { - ok(true, '.dialog("close") fires beforeclose callback'); + beforeClose: function(ev, ui) { + ok(true, '.dialog("close") fires beforeClose callback'); equals(this, el[0], "context of callback"); equals(ev.type, 'dialogbeforeclose', 'event type in callback'); same(ui, {}, 'ui hash in callback'); @@ -199,7 +199,7 @@ test("beforeclose", function() { } }); el.dialog('close'); - isOpen('beforeclose callback should prevent dialog from closing'); + isOpen('beforeClose callback should prevent dialog from closing'); el.remove(); el = $('<div></div>').dialog().bind('dialogbeforeclose', function(ev, ui) { |