aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/dialog/dialog_common.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/dialog/dialog_common.js')
-rw-r--r--tests/unit/dialog/dialog_common.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/unit/dialog/dialog_common.js b/tests/unit/dialog/dialog_common.js
new file mode 100644
index 000000000..623908da7
--- /dev/null
+++ b/tests/unit/dialog/dialog_common.js
@@ -0,0 +1,34 @@
+TestHelpers.commonWidgetTests( "dialog", {
+ defaults: {
+ autoOpen: true,
+ buttons: {},
+ closeOnEscape: true,
+ closeText: 'close',
+ disabled: false,
+ dialogClass: '',
+ draggable: true,
+ height: 'auto',
+ hide: null,
+ maxHeight: false,
+ maxWidth: false,
+ minHeight: 150,
+ minWidth: 150,
+ modal: false,
+ position: {
+ my: 'center',
+ at: 'center',
+ of: window,
+ collision: 'fit',
+ using: $.ui.dialog.prototype.options.position.using
+ },
+ resizable: true,
+ show: null,
+ stack: true,
+ title: '',
+ width: 300,
+ zIndex: 1000,
+
+ // callbacks
+ create: null
+ }
+});