aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ui.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-11-11 13:32:48 +0000
committerRichard Worth <rdworth@gmail.com>2008-11-11 13:32:48 +0000
commita08dfc9f6f53658494a8e5fa00a2846dea96e626 (patch)
tree5a3aa7985bb8ce30031cd6ea9f8d24f7d18c4e84 /tests/ui.js
parent2afb5942aaab4aa8d37939dd5bb44aa46438b10e (diff)
downloadjquery-ui-a08dfc9f6f53658494a8e5fa00a2846dea96e626.tar.gz
jquery-ui-a08dfc9f6f53658494a8e5fa00a2846dea96e626.zip
Added new test suite for common tests across all UI plugins
Diffstat (limited to 'tests/ui.js')
-rw-r--r--tests/ui.js38
1 files changed, 38 insertions, 0 deletions
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);