1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* * draggable_defaults.js */ (function($) { module("draggable: defaults"); test("defaults", function() { el = $('<div></div>').draggable(); $.each(draggable_defaults, function(key, val) { var actual = el.data(key + ".draggable"), expected = val; same(actual, expected, key); }); el.remove(); }); })(jQuery);