mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-02 14:00:22 +00:00
test to make sure the label has the ui-select class
This commit is contained in:
parent
62e1631353
commit
7a9b379dea
2 changed files with 5 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue