aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-02-02 13:23:51 +0000
committerRichard Worth <rdworth@gmail.com>2009-02-02 13:23:51 +0000
commit7ed45e68de02df14b72d536aa719a442ed116dfa (patch)
tree109fb4a1253a76bc23f4bab8d5a85a24810f4db4
parent4ad531044e6da304f72e80a63db66fcf8b13d8e5 (diff)
downloadjquery-ui-7ed45e68de02df14b72d536aa719a442ed116dfa.tar.gz
jquery-ui-7ed45e68de02df14b72d536aa719a442ed116dfa.zip
unit tests: minor updates
-rw-r--r--tests/unit/draggable/draggable_options.js4
-rw-r--r--tests/unit/droppable/droppable_defaults.js2
-rw-r--r--tests/unit/droppable/droppable_options.js12
-rw-r--r--tests/unit/testsuite.js2
4 files changed, 15 insertions, 5 deletions
diff --git a/tests/unit/draggable/draggable_options.js b/tests/unit/draggable/draggable_options.js
index 5703c90d4..9fc4f4de2 100644
--- a/tests/unit/draggable/draggable_options.js
+++ b/tests/unit/draggable/draggable_options.js
@@ -28,11 +28,15 @@ test("{ addClasses: true }, default", function() {
el = $("<div></div>").draggable({ addClasses: true });
ok(el.is(".ui-draggable"), "'ui-draggable' class added");
+
+ el.draggable("destroy");
});
test("{ addClasses: false }", function() {
el = $("<div></div>").draggable({ addClasses: false });
ok(!el.is(".ui-draggable"), "'ui-draggable' class not added");
+
+ el.draggable("destroy");
});
test("{ appendTo: 'parent' }, default", function() {
diff --git a/tests/unit/droppable/droppable_defaults.js b/tests/unit/droppable/droppable_defaults.js
index 1c175631b..7584f5ec8 100644
--- a/tests/unit/droppable/droppable_defaults.js
+++ b/tests/unit/droppable/droppable_defaults.js
@@ -3,9 +3,9 @@
*/
var droppable_defaults = {
- addClasses: true,
accept: '*',
activeClass: false,
+ addClasses: true,
disabled: false,
greedy: false,
hoverClass: false,
diff --git a/tests/unit/droppable/droppable_options.js b/tests/unit/droppable/droppable_options.js
index c63429bc5..2f2dbf673 100644
--- a/tests/unit/droppable/droppable_options.js
+++ b/tests/unit/droppable/droppable_options.js
@@ -1,15 +1,21 @@
/*
- * droppable_optinos.js
+ * droppable_options.js
*/
(function($) {
module("droppable: options");
-test("accept, selector", function() {
+test("{ accept '*' }, default ", function() {
+ equals(droppable_defaults.accept, '*');
+
+ ok(false, 'missing test - untested code is broken code');
+});
+
+test("{ accept: Selector }", function() {
ok(false, 'missing test - untested code is broken code');
});
-test("accept, fn", function() {
+test("{ accept: function(draggable) }", function() {
ok(false, 'missing test - untested code is broken code');
});
diff --git a/tests/unit/testsuite.js b/tests/unit/testsuite.js
index e1a93ce89..05dfcbe1e 100644
--- a/tests/unit/testsuite.js
+++ b/tests/unit/testsuite.js
@@ -88,6 +88,6 @@ function commonWidgetTests(widget, settings) {
module(widget + ": common widget");
testWidgetDefaults(widget, settings.defaults);
-// testSettingOptions(widget, options);
+ testSettingOptions(widget, options);
testWidgetOverrides(widget);
}