mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu tests: remove option dropdown
This commit is contained in:
parent
a787d52d4a
commit
84621940bf
@ -2,18 +2,20 @@ TestHelpers.commonWidgetTests( "selectmenu", {
|
||||
defaults: {
|
||||
appendTo: null,
|
||||
disabled: false,
|
||||
dropdown: true,
|
||||
icons: {
|
||||
button: "ui-icon-triangle-1-s"
|
||||
},
|
||||
position: {
|
||||
my: "left top",
|
||||
at: "left bottom",
|
||||
collision: "none"
|
||||
},
|
||||
// callbacks,
|
||||
// callbacks
|
||||
create: null,
|
||||
open: null,
|
||||
focus: null,
|
||||
select: null,
|
||||
change: null,
|
||||
close: null,
|
||||
change: null
|
||||
focus: null,
|
||||
open: null,
|
||||
select: null
|
||||
}
|
||||
});
|
||||
|
@ -45,7 +45,7 @@ test("appendTo another element", function () {
|
||||
});
|
||||
|
||||
|
||||
test("dropdown: CSS styles", function () {
|
||||
test("CSS styles", function () {
|
||||
expect(2);
|
||||
|
||||
var element = $("#speed").selectmenu(),
|
||||
@ -57,18 +57,4 @@ test("dropdown: CSS styles", function () {
|
||||
ok( menu.hasClass("ui-corner-bottom") && !menu.hasClass("ui-corner-all"), "menu styles dropdown");
|
||||
});
|
||||
|
||||
test("pop-up: CSS styles", function () {
|
||||
expect(2);
|
||||
|
||||
var element = $("#speed").selectmenu({
|
||||
dropdown: false
|
||||
}),
|
||||
button = element.selectmenu("widget"),
|
||||
menu = element.selectmenu("menuWidget");
|
||||
|
||||
element.selectmenu("close");
|
||||
ok( !button.hasClass("ui-corner-top") && button.hasClass("ui-corner-all") && button.find("span.ui-icon").hasClass("ui-icon-triangle-2-n-s"), "button styles pop-up");
|
||||
ok( !menu.hasClass("ui-corner-bottom") && menu.hasClass("ui-corner-all"), "menu styles pop-up");
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
@ -14,12 +14,8 @@
|
||||
<script>
|
||||
$(function() {
|
||||
/* disabled */
|
||||
$('select#disabled1').selectmenu({
|
||||
dropdown: false
|
||||
});
|
||||
var withOverflow = $('select#disabled2').selectmenu({
|
||||
dropdown: false
|
||||
});
|
||||
$('select#disabled1').selectmenu();
|
||||
var withOverflow = $('select#disabled2').selectmenu();
|
||||
withOverflow.selectmenu("menuWidget").addClass("overflow");
|
||||
$('select#disabled3').selectmenu();
|
||||
var disabled4 = $('select#disabled4').selectmenu();
|
||||
|
Loading…
Reference in New Issue
Block a user