diff --git a/tests/ui.html b/tests/ui.html new file mode 100644 index 000000000..51a79eb67 --- /dev/null +++ b/tests/ui.html @@ -0,0 +1,41 @@ + + + + jQuery UI Test Suite + + + + + + + + + + + + + + + + + + + + + + + + + +

jQuery UI Test Suite

+ +

+ +
    + +
    + +
    + + + diff --git a/tests/ui.js b/tests/ui.js new file mode 100644 index 000000000..8779549bf --- /dev/null +++ b/tests/ui.js @@ -0,0 +1,38 @@ +/* + * core 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);