From a08dfc9f6f53658494a8e5fa00a2846dea96e626 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Tue, 11 Nov 2008 13:32:48 +0000 Subject: [PATCH] Added new test suite for common tests across all UI plugins --- tests/ui.html | 41 +++++++++++++++++++++++++++++++++++++++++ tests/ui.js | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 tests/ui.html create mode 100644 tests/ui.js 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); -- 2.39.5