r1964 - in trunk/tests/unit: . draggable droppable

r1964 - in trunk/tests/unit: . draggable droppable


Author: rdworth
Date: Mon Feb 2 05:23:51 2009
New Revision: 1964
Modified:
trunk/tests/unit/draggable/draggable_options.js
trunk/tests/unit/droppable/droppable_defaults.js
trunk/tests/unit/droppable/droppable_options.js
trunk/tests/unit/testsuite.js
Log:
unit tests: minor updates
Modified: trunk/tests/unit/draggable/draggable_options.js
==============================================================================
--- trunk/tests/unit/draggable/draggable_options.js    (original)
+++ trunk/tests/unit/draggable/draggable_options.js    Mon Feb 2 05:23:51 2009
@@ -28,11 +28,15 @@
    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() {
Modified: trunk/tests/unit/droppable/droppable_defaults.js
==============================================================================
--- trunk/tests/unit/droppable/droppable_defaults.js    (original)
+++ trunk/tests/unit/droppable/droppable_defaults.js    Mon Feb 2 05:23:51
2009
@@ -3,9 +3,9 @@
*/
var droppable_defaults = {
-    addClasses: true,
    accept: '*',
    activeClass: false,
+    addClasses: true,
    disabled: false,
    greedy: false,
    hoverClass: false,
Modified: trunk/tests/unit/droppable/droppable_options.js
==============================================================================
--- trunk/tests/unit/droppable/droppable_options.js    (original)
+++ trunk/tests/unit/droppable/droppable_options.js    Mon Feb 2 05:23:51 2009
@@ -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');
});
Modified: trunk/tests/unit/testsuite.js
==============================================================================
--- trunk/tests/unit/testsuite.js    (original)
+++ trunk/tests/unit/testsuite.js    Mon Feb 2 05:23:51 2009
@@ -88,6 +88,6 @@
    module(widget + ": common widget");
testWidgetDefaults(widget, settings.defaults);
-// testSettingOptions(widget, options);
+ testSettingOptions(widget, options);
testWidgetOverrides(widget);
}