Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[select unit tests] Make sure no menu listbox is generated for a non-…

…native select inside a popup
  • Loading branch information...
commit d66b66276145f19636ae0f847096248f30c7003d 1 parent 3595198
@gabrielschulhof gabrielschulhof authored
View
9 tests/unit/select/index.html
@@ -86,6 +86,14 @@ <h2 id="qunit-userAgent"></h2>
</select>
</div>
+ <div data-nstest-role="popup" id="popup-containing-select">
+ <select name="select-choice-inside-popup" id="select-choice-inside-popup" data-nstest-native-menu="false">
+ <option value="abracadabra">Abracadabra</option>
+ <option value="simsalabim">Simsalabim</option>
+ <option value="csiribu-csiriba">Csiribu-Csiriba</option>
+ </select>
+ </div>
+
<div data-nstest-role="fieldcontain" id="select-choice-many-container-1">
<label for="select-choice-many-1" class="select">Your state:</label>
<select name="select-choice-many-1" id="select-choice-many-1" data-nstest-native-menu="false">
@@ -415,7 +423,6 @@ <h2 id="qunit-userAgent"></h2>
</select>
</div>
-
<div id="enhancetest">
<select name="select-enhancetest" id="select-enhancetest">
<option value="standard">Standard: 7 day</option>
View
4 tests/unit/select/select_core.js
@@ -151,6 +151,10 @@
}
});
+ test( "a popup containing a non-native select will cause the select to be rendered as native", function() {
+ ok( $( "#select-choice-inside-popup-menu" ).length === 0, "non-native select inside popup has no generated menu" );
+ });
+
asyncTest( "a large select option should not overflow", function(){
// https://github.com/jquery/jquery-mobile/issues/1338
var menu, select;
Please sign in to comment.
Something went wrong with that request. Please try again.