aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tooltip/tooltip_defaults.js
diff options
context:
space:
mode:
authorjzaefferer <joern.zaefferer@gmail.com>2010-04-15 09:45:35 +0200
committerjzaefferer <joern.zaefferer@gmail.com>2010-04-15 09:45:35 +0200
commit84e0ce168f109fbd5482c6c1ba09bbbb55592888 (patch)
tree2992b7c9a1a36bf227ff01b3f94ffc5913ba696b /tests/unit/tooltip/tooltip_defaults.js
parentacfc66e1ab4c90897139507124de7365fee4afb9 (diff)
downloadjquery-ui-84e0ce168f109fbd5482c6c1ba09bbbb55592888.tar.gz
jquery-ui-84e0ce168f109fbd5482c6c1ba09bbbb55592888.zip
Tooltip: Unit tests for tooltip and a fix to pass through event objects to triggered events
Diffstat (limited to 'tests/unit/tooltip/tooltip_defaults.js')
-rw-r--r--tests/unit/tooltip/tooltip_defaults.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/unit/tooltip/tooltip_defaults.js b/tests/unit/tooltip/tooltip_defaults.js
new file mode 100644
index 000000000..bcdcd4307
--- /dev/null
+++ b/tests/unit/tooltip/tooltip_defaults.js
@@ -0,0 +1,16 @@
+/*
+ * tooltip_defaults.js
+ */
+
+var tooltip_defaults = {
+ disabled: false,
+ content: $.ui.tooltip.prototype.options.content,
+ tooltipClass: "ui-widget-content",
+ position: {
+ my: "left center",
+ at: "right center",
+ offset: "15 0"
+ }
+};
+
+commonWidgetTests('tooltip', { defaults: tooltip_defaults });