test to make sure the label has the ui-select class

This commit is contained in:
John Bender 2011-08-09 15:55:40 -07:00
parent 62e1631353
commit 7a9b379dea
2 changed files with 5 additions and 0 deletions

View file

@ -36,6 +36,7 @@
</div>
<div data-nstest-role="fieldcontain" id="native-select-choice-few-container">
<label for="native-select-choice-few" class="select">Choose shipping method:</label>
<select name="native-select-choice-few" id="native-select-choice-few" data-nstest-native-menu="true">
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>

View file

@ -169,6 +169,10 @@
$.testHelper.sequence(sequence, 1000);
});
test( "make sure the label for the select gets the ui-select class", function(){
ok( $( "#native-select-choice-few-container label" ).hasClass( "ui-select" ), "created label has ui-select class" );
});
module("Non native menus", {
setup: function() {
$.mobile.selectmenu.prototype.options.nativeMenu = false;