Skip to content
Permalink
Browse files

Selectmenu tests: remove option dropdown

  • Loading branch information...
fnagel committed Dec 19, 2012
1 parent a787d52 commit 84621940bfa9e8ca5db20e6ab8caa9fb65b0a7e9
@@ -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();

0 comments on commit 8462194

Please sign in to comment.
You can’t perform that action at this time.