Skip to content

Commit c090fe9

Browse files
committed
Resizable tests: Remove all bad tests.
1 parent 31f3d0e commit c090fe9

File tree

3 files changed

+4
-68
lines changed

3 files changed

+4
-68
lines changed

tests/unit/resizable/resizable_defaults.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ TestHelpers.commonWidgetTests('resizable', {
1919
maxWidth: null,
2020
minHeight: 10,
2121
minWidth: 10,
22-
zIndex: 1000
22+
zIndex: 1000,
23+
24+
// callbacks
25+
create: null
2326
}
2427
});

tests/unit/resizable/resizable_events.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,4 @@
55

66
module("resizable: events");
77

8-
test("start", function() {
9-
ok(false, "missing test - untested code is broken code.");
10-
});
11-
12-
test("resize", function() {
13-
ok(false, "missing test - untested code is broken code.");
14-
});
15-
16-
test("stop", function() {
17-
ok(false, "missing test - untested code is broken code.");
18-
});
19-
208
})(jQuery);

tests/unit/resizable/resizable_methods.js

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -5,60 +5,5 @@
55

66
module("resizable: methods");
77

8-
test("init", function() {
9-
expect(6);
10-
11-
$("<div></div>").appendTo('body').resizable().remove();
12-
ok(true, '.resizable() called on element');
13-
14-
$([]).resizable().remove();
15-
ok(true, '.resizable() called on empty collection');
16-
17-
$('<div></div>').resizable().remove();
18-
ok(true, '.resizable() called on disconnected DOMElement');
19-
20-
$('<div></div>').resizable().resizable("foo").remove();
21-
ok(true, 'arbitrary method called after init');
22-
23-
el = $('<div></div>').resizable();
24-
var foo = el.resizable("option", "foo");
25-
el.remove();
26-
ok(true, 'arbitrary option getter after init');
27-
28-
$('<div></div>').resizable().resizable("option", "foo", "bar").remove();
29-
ok(true, 'arbitrary option setter after init');
30-
});
31-
32-
test("destroy", function() {
33-
$("<div></div>").appendTo('body').resizable().resizable("destroy").remove();
34-
ok(true, '.resizable("destroy") called on element');
35-
36-
$([]).resizable().resizable("destroy").remove();
37-
ok(true, '.resizable("destroy") called on empty collection');
38-
39-
$('<div></div>').resizable().resizable("destroy").remove();
40-
ok(true, '.resizable("destroy") called on disconnected DOMElement');
41-
42-
$('<div></div>').resizable().resizable("destroy").resizable("foo").remove();
43-
ok(true, 'arbitrary method called after destroy');
44-
45-
var expected = $('<div></div>').resizable(),
46-
actual = expected.resizable('destroy');
47-
equal(actual, expected, 'destroy is chainable');
48-
});
49-
50-
test("enable", function() {
51-
var expected = $('<div></div>').resizable(),
52-
actual = expected.resizable('enable');
53-
equal(actual, expected, 'enable is chainable');
54-
ok(false, "missing test - untested code is broken code.");
55-
});
56-
57-
test("disable", function() {
58-
var expected = $('<div></div>').resizable(),
59-
actual = expected.resizable('disable');
60-
equal(actual, expected, 'disable is chainable');
61-
ok(false, "missing test - untested code is broken code.");
62-
});
638

649
})(jQuery);

0 commit comments

Comments
 (0)