aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tooltip/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/tooltip/common.js')
-rw-r--r--tests/unit/tooltip/common.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/unit/tooltip/common.js b/tests/unit/tooltip/common.js
new file mode 100644
index 000000000..f8045fc33
--- /dev/null
+++ b/tests/unit/tooltip/common.js
@@ -0,0 +1,30 @@
+define( [
+ "lib/common",
+ "ui/tooltip"
+], function( common ) {
+
+common.testWidget( "tooltip", {
+ defaults: {
+ classes: {
+ "ui-tooltip": "ui-corner-all ui-widget-shadow"
+ },
+ content: function() {},
+ disabled: false,
+ hide: true,
+ items: "[title]:not([disabled])",
+ position: {
+ my: "left top+15",
+ at: "left bottom",
+ collision: "flipfit flip"
+ },
+ show: true,
+ track: false,
+
+ // callbacks
+ close: null,
+ create: null,
+ open: null
+ }
+});
+
+} );