mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
unit tests: minor updates
This commit is contained in:
parent
4ad531044e
commit
7ed45e68de
@ -28,11 +28,15 @@ test("{ addClasses: true }, default", function() {
|
|||||||
|
|
||||||
el = $("<div></div>").draggable({ addClasses: true });
|
el = $("<div></div>").draggable({ addClasses: true });
|
||||||
ok(el.is(".ui-draggable"), "'ui-draggable' class added");
|
ok(el.is(".ui-draggable"), "'ui-draggable' class added");
|
||||||
|
|
||||||
|
el.draggable("destroy");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("{ addClasses: false }", function() {
|
test("{ addClasses: false }", function() {
|
||||||
el = $("<div></div>").draggable({ addClasses: false });
|
el = $("<div></div>").draggable({ addClasses: false });
|
||||||
ok(!el.is(".ui-draggable"), "'ui-draggable' class not added");
|
ok(!el.is(".ui-draggable"), "'ui-draggable' class not added");
|
||||||
|
|
||||||
|
el.draggable("destroy");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("{ appendTo: 'parent' }, default", function() {
|
test("{ appendTo: 'parent' }, default", function() {
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
var droppable_defaults = {
|
var droppable_defaults = {
|
||||||
addClasses: true,
|
|
||||||
accept: '*',
|
accept: '*',
|
||||||
activeClass: false,
|
activeClass: false,
|
||||||
|
addClasses: true,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
greedy: false,
|
greedy: false,
|
||||||
hoverClass: false,
|
hoverClass: false,
|
||||||
|
@ -1,15 +1,21 @@
|
|||||||
/*
|
/*
|
||||||
* droppable_optinos.js
|
* droppable_options.js
|
||||||
*/
|
*/
|
||||||
(function($) {
|
(function($) {
|
||||||
|
|
||||||
module("droppable: options");
|
module("droppable: options");
|
||||||
|
|
||||||
test("accept, selector", function() {
|
test("{ accept '*' }, default ", function() {
|
||||||
|
equals(droppable_defaults.accept, '*');
|
||||||
|
|
||||||
ok(false, 'missing test - untested code is broken code');
|
ok(false, 'missing test - untested code is broken code');
|
||||||
});
|
});
|
||||||
|
|
||||||
test("accept, fn", function() {
|
test("{ accept: Selector }", function() {
|
||||||
|
ok(false, 'missing test - untested code is broken code');
|
||||||
|
});
|
||||||
|
|
||||||
|
test("{ accept: function(draggable) }", function() {
|
||||||
ok(false, 'missing test - untested code is broken code');
|
ok(false, 'missing test - untested code is broken code');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -88,6 +88,6 @@ function commonWidgetTests(widget, settings) {
|
|||||||
module(widget + ": common widget");
|
module(widget + ": common widget");
|
||||||
|
|
||||||
testWidgetDefaults(widget, settings.defaults);
|
testWidgetDefaults(widget, settings.defaults);
|
||||||
// testSettingOptions(widget, options);
|
testSettingOptions(widget, options);
|
||||||
testWidgetOverrides(widget);
|
testWidgetOverrides(widget);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user