This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
suitedesk/modules/jquery_ui/jquery.ui/tests/ui.js

35 lines
606 B
JavaScript

/*
* common UI unit tests
*/
(function($) {
var plugins = [
"accordion",
"datepicker",
"dialog",
"draggable",
"droppable",
"resizable",
"selectable",
"slider",
"sortable",
"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);