mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Resizable tests: Remove all bad tests.
This commit is contained in:
parent
31f3d0e6a3
commit
c090fe9486
@ -19,6 +19,9 @@ TestHelpers.commonWidgetTests('resizable', {
|
|||||||
maxWidth: null,
|
maxWidth: null,
|
||||||
minHeight: 10,
|
minHeight: 10,
|
||||||
minWidth: 10,
|
minWidth: 10,
|
||||||
zIndex: 1000
|
zIndex: 1000,
|
||||||
|
|
||||||
|
// callbacks
|
||||||
|
create: null
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -5,16 +5,4 @@
|
|||||||
|
|
||||||
module("resizable: events");
|
module("resizable: events");
|
||||||
|
|
||||||
test("start", function() {
|
|
||||||
ok(false, "missing test - untested code is broken code.");
|
|
||||||
});
|
|
||||||
|
|
||||||
test("resize", function() {
|
|
||||||
ok(false, "missing test - untested code is broken code.");
|
|
||||||
});
|
|
||||||
|
|
||||||
test("stop", function() {
|
|
||||||
ok(false, "missing test - untested code is broken code.");
|
|
||||||
});
|
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
@ -5,60 +5,5 @@
|
|||||||
|
|
||||||
module("resizable: methods");
|
module("resizable: methods");
|
||||||
|
|
||||||
test("init", function() {
|
|
||||||
expect(6);
|
|
||||||
|
|
||||||
$("<div></div>").appendTo('body').resizable().remove();
|
|
||||||
ok(true, '.resizable() called on element');
|
|
||||||
|
|
||||||
$([]).resizable().remove();
|
|
||||||
ok(true, '.resizable() called on empty collection');
|
|
||||||
|
|
||||||
$('<div></div>').resizable().remove();
|
|
||||||
ok(true, '.resizable() called on disconnected DOMElement');
|
|
||||||
|
|
||||||
$('<div></div>').resizable().resizable("foo").remove();
|
|
||||||
ok(true, 'arbitrary method called after init');
|
|
||||||
|
|
||||||
el = $('<div></div>').resizable();
|
|
||||||
var foo = el.resizable("option", "foo");
|
|
||||||
el.remove();
|
|
||||||
ok(true, 'arbitrary option getter after init');
|
|
||||||
|
|
||||||
$('<div></div>').resizable().resizable("option", "foo", "bar").remove();
|
|
||||||
ok(true, 'arbitrary option setter after init');
|
|
||||||
});
|
|
||||||
|
|
||||||
test("destroy", function() {
|
|
||||||
$("<div></div>").appendTo('body').resizable().resizable("destroy").remove();
|
|
||||||
ok(true, '.resizable("destroy") called on element');
|
|
||||||
|
|
||||||
$([]).resizable().resizable("destroy").remove();
|
|
||||||
ok(true, '.resizable("destroy") called on empty collection');
|
|
||||||
|
|
||||||
$('<div></div>').resizable().resizable("destroy").remove();
|
|
||||||
ok(true, '.resizable("destroy") called on disconnected DOMElement');
|
|
||||||
|
|
||||||
$('<div></div>').resizable().resizable("destroy").resizable("foo").remove();
|
|
||||||
ok(true, 'arbitrary method called after destroy');
|
|
||||||
|
|
||||||
var expected = $('<div></div>').resizable(),
|
|
||||||
actual = expected.resizable('destroy');
|
|
||||||
equal(actual, expected, 'destroy is chainable');
|
|
||||||
});
|
|
||||||
|
|
||||||
test("enable", function() {
|
|
||||||
var expected = $('<div></div>').resizable(),
|
|
||||||
actual = expected.resizable('enable');
|
|
||||||
equal(actual, expected, 'enable is chainable');
|
|
||||||
ok(false, "missing test - untested code is broken code.");
|
|
||||||
});
|
|
||||||
|
|
||||||
test("disable", function() {
|
|
||||||
var expected = $('<div></div>').resizable(),
|
|
||||||
actual = expected.resizable('disable');
|
|
||||||
equal(actual, expected, 'disable is chainable');
|
|
||||||
ok(false, "missing test - untested code is broken code.");
|
|
||||||
});
|
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
Loading…
Reference in New Issue
Block a user