mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
39 lines
653 B
JavaScript
39 lines
653 B
JavaScript
/*
|
|
* common UI unit tests
|
|
*/
|
|
(function($) {
|
|
|
|
var plugins = [
|
|
"accordion",
|
|
"colorpicker",
|
|
"datepicker",
|
|
"dialog",
|
|
"draggable",
|
|
"droppable",
|
|
"progressbar",
|
|
"resizable",
|
|
"selectable",
|
|
"slider",
|
|
"sortable",
|
|
"spinner",
|
|
"tabs"
|
|
];
|
|
|
|
module("version");
|
|
|
|
test("core", function() {
|
|
equals($.ui.version, "@VERSION", "$.ui.version");
|
|
});
|
|
|
|
$(plugins).each(function() {
|
|
var pluginName = this;
|
|
test(pluginName, function() {
|
|
if ($.ui[pluginName])
|
|
equals($.ui[pluginName].version, "@VERSION", "$.ui." + pluginName + ".version");
|
|
else
|
|
ok(false, "$.ui." + pluginName + " undefined.");
|
|
});
|
|
});
|
|
|
|
})(jQuery);
|