aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/dialog/dialog_common.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-04-23 10:15:17 -0400
committerScott González <scott.gonzalez@gmail.com>2012-04-23 10:15:17 -0400
commit7a5a77da50e5e2401043410434c49971ce504653 (patch)
treebd77148cbed152728b2d3001359cd1c1f0247660 /tests/unit/dialog/dialog_common.js
parent3b54760b51fde0e541d2b47c34475ab29a4eea79 (diff)
downloadjquery-ui-7a5a77da50e5e2401043410434c49971ce504653.tar.gz
jquery-ui-7a5a77da50e5e2401043410434c49971ce504653.zip
Tests: Rename {widget}_defaults.js -> {widget}_common.js
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
+ }
+});