aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-12-10 14:31:36 -0500
committerScott González <scott.gonzalez@gmail.com>2010-12-10 14:31:36 -0500
commitb42125af4350eda14a6b15bb71f8dd336858fbd8 (patch)
treed79dde84caffa26758aceffce56507439e3361cf /tests
parent9ad2a4b1ccebb32cc745be3ef85a4b634e416ff8 (diff)
downloadjquery-ui-b42125af4350eda14a6b15bb71f8dd336858fbd8.tar.gz
jquery-ui-b42125af4350eda14a6b15bb71f8dd336858fbd8.zip
Dialog: Removed handling of deprecated beforeclose option. Fixes #5100 - Dialog: remove deprecated dialog option beforeclose.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/dialog/dialog_events.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/unit/dialog/dialog_events.js b/tests/unit/dialog/dialog_events.js
index 8c7657dfd..40a8575b6 100644
--- a/tests/unit/dialog/dialog_events.js
+++ b/tests/unit/dialog/dialog_events.js
@@ -212,38 +212,6 @@ test("close", function() {
el.remove();
});
-//handling of deprecated beforeclose (vs beforeClose) option
-//Ticket #4669 http://dev.jqueryui.com/ticket/4669
-//TODO: remove in 1.9pre
-test("beforeclose", function() {
- expect(10);
-
- el = $('<div></div>').dialog({
- 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');
- return false;
- }
- });
- el.dialog('close');
- isOpen('beforeclose (deprecated) callback should prevent dialog from closing');
- el.remove();
-
- el = $('<div></div>').dialog();
- el.dialog('option', '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');
- return false;
- });
- el.dialog('close');
- isOpen('beforeclose (deprecated) callback should prevent dialog from closing');
- el.remove();
-});
-
test("beforeClose", function() {
expect(14);