aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/dialog
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-07-11 00:36:36 +0000
committerScott González <scott.gonzalez@gmail.com>2009-07-11 00:36:36 +0000
commita716261ab68536f3b22e994137c8b35b5a15a71b (patch)
tree121b1860ea5b930295ea020263930b4c881ef665 /tests/unit/dialog
parent1a0345365446ef973da55cbeff7f5e8bd0b795cf (diff)
downloadjquery-ui-a716261ab68536f3b22e994137c8b35b5a15a71b.tar.gz
jquery-ui-a716261ab68536f3b22e994137c8b35b5a15a71b.zip
Dialog: Changed beforeclose option to beforeClose. Fixes #4669 - Dialog: beforeclose option should be beforeClose.
Diffstat (limited to 'tests/unit/dialog')
-rw-r--r--tests/unit/dialog/dialog_events.js8
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) {