diff options
Diffstat (limited to 'tests/ui.js')
-rw-r--r-- | tests/ui.js | 38 |
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);
|