mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Merged in /branches/dev r3251:3620 (excluding autocomplete, modal, tooltip, menu; including menu static tests).
This commit is contained in:
@@ -57,40 +57,4 @@ test('zIndex', function() {
|
||||
equals($('#zIndexAutoNoParent').zIndex(), 0, 'zIndex never explicitly set in hierarchy');
|
||||
});
|
||||
|
||||
test('widget factory, merge multiple option arguments', function() {
|
||||
expect(1);
|
||||
$.widget("ui.widgetTest", {
|
||||
_init: function() {
|
||||
same(this.options, {
|
||||
disabled: false,
|
||||
option1: "value1",
|
||||
option2: "value2",
|
||||
option3: "value3",
|
||||
option4: {
|
||||
option4a: "valuea",
|
||||
option4b: "valueb"
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
$("#main > :first").widgetTest({
|
||||
option1: "valuex",
|
||||
option2: "valuex",
|
||||
option3: "value3",
|
||||
option4: {
|
||||
option4a: "valuex"
|
||||
}
|
||||
}, {
|
||||
option1: "value1",
|
||||
option2: "value2",
|
||||
option4: {
|
||||
option4b: "valueb"
|
||||
}
|
||||
}, {
|
||||
option4: {
|
||||
option4a: "valuea"
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
||||
Reference in New Issue
Block a user