diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-10-13 21:32:42 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2008-10-13 21:32:42 +0000 |
commit | b6cb342c6595e086305a0f8efa93c48280f4806e (patch) | |
tree | 710a0d113e3bcbdad452ef2ffc8ea9c978aa289a /tests/resizable.js | |
parent | 59109b7894a3e6d203c7c711984860def740cff3 (diff) | |
download | jquery-ui-b6cb342c6595e086305a0f8efa93c48280f4806e.tar.gz jquery-ui-b6cb342c6595e086305a0f8efa93c48280f4806e.zip |
updating tests to latest QUnit, using same, fixing a few assertions that relied on type casting (mostly null/undefined)
Diffstat (limited to 'tests/resizable.js')
-rw-r--r-- | tests/resizable.js | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/resizable.js b/tests/resizable.js index f238726a4..c091c14d9 100644 --- a/tests/resizable.js +++ b/tests/resizable.js @@ -21,19 +21,19 @@ var drag = function(el, dx, dy, complete) { }; var defaults = { - alsoResize: null, + alsoResize: undefined, aspectRatio: false, autoHide: false, - containment: null, - grid: null, + containment: undefined, + grid: undefined, handles: 'e,s,se', helper: null, disabled: false, - maxHeight: null, - maxWidth: null, + maxHeight: undefined, + maxWidth: undefined, minHeight: 10, minWidth: 10, - proportionallyResize: null + proportionallyResize: undefined }; // Resizable Tests @@ -107,10 +107,8 @@ test("element types", function() { test("defaults", function() { el = $('<div/>').resizable(); $.each(defaults, function(key, val) { - var actual = el.data(key + ".resizable"), expected = val, - method = (expected && expected.constructor == Object) ? - compare2 : equals; - method(actual, expected, key); + var actual = el.data(key + ".resizable"), expected = val; + same(actual, expected, key); }); el.remove(); }); |