diff options
author | Richard Worth <rdworth@gmail.com> | 2009-02-02 06:45:50 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2009-02-02 06:45:50 +0000 |
commit | c5df36e277ffef271790ff6d27af47ef64858deb (patch) | |
tree | f9fa1d6467359c65b9b9fda3fd09bc05d2b0c72e /tests/unit/draggable/draggable_options.js | |
parent | c42164097caca488ac1b1761a6678793f2c3322f (diff) | |
download | jquery-ui-c5df36e277ffef271790ff6d27af47ef64858deb.tar.gz jquery-ui-c5df36e277ffef271790ff6d27af47ef64858deb.zip |
Fixed #4036 (draggable: cssNamespace option should be removed, addClasses option added)
Diffstat (limited to 'tests/unit/draggable/draggable_options.js')
-rw-r--r-- | tests/unit/draggable/draggable_options.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/unit/draggable/draggable_options.js b/tests/unit/draggable/draggable_options.js index d5709576d..7039b3c56 100644 --- a/tests/unit/draggable/draggable_options.js +++ b/tests/unit/draggable/draggable_options.js @@ -23,6 +23,18 @@ var margin = function(el, side) { return parseInt(el.css('margin-' + side)); } module("draggable: options"); +test("{ addClasses: true }, default", function() { + equals(draggable_defaults.addClasses, true); + + el = $("<div></div>").draggable({ addClasses: true }); + ok(el.is(".ui-draggable"), "'ui-draggable' class added"); +}); + +test("{ addClasses: false }", function() { + el = $("<div></div>").draggable({ addClasses: false }); + ok(!el.is(".ui.draggable"), "'ui-draggable' class not added"); +}); + test("{ appendTo: 'parent' }, default", function() { equals(draggable_defaults.appendTo, "parent"); |