aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/core
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-08-28 00:39:43 +0000
committerScott González <scott.gonzalez@gmail.com>2009-08-28 00:39:43 +0000
commitbba67df74722517c3db4d4daa7df6124a6767ede (patch)
tree77a751e89e8a70834f05500c85bfe92836439ae3 /tests/unit/core
parent6c6218fa12cc25695d2203a536b2047879ad904d (diff)
downloadjquery-ui-bba67df74722517c3db4d4daa7df6124a6767ede.tar.gz
jquery-ui-bba67df74722517c3db4d4daa7df6124a6767ede.zip
Widget factory: Added support for deep extending multiple option hashes on init.
Diffstat (limited to 'tests/unit/core')
-rw-r--r--tests/unit/core/core.js20
1 files changed, 17 insertions, 3 deletions
diff --git a/tests/unit/core/core.js b/tests/unit/core/core.js
index 232b95061..71f8c5845 100644
--- a/tests/unit/core/core.js
+++ b/tests/unit/core/core.js
@@ -65,17 +65,31 @@ test('widget factory, merge multiple option arguments', function() {
disabled: false,
option1: "value1",
option2: "value2",
- option3: "value3"
+ option3: "value3",
+ option4: {
+ option4a: "valuea",
+ option4b: "valueb"
+ }
});
}
});
$("#main > :first").widgetTest({
option1: "valuex",
option2: "valuex",
- option3: "value3"
+ option3: "value3",
+ option4: {
+ option4a: "valuex"
+ }
}, {
option1: "value1",
- option2: "value2"
+ option2: "value2",
+ option4: {
+ option4b: "valueb"
+ }
+ }, {
+ option4: {
+ option4a: "valuea"
+ }
});
});