File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,10 @@ <h2 id="qunit-userAgent"></h2>
349349 < select name ="encoded-option " id ="encoded-option " data-nstest-native-menu ="false ">
350350 < option > <script>window.encodedValueIsDefined = true;</script></ option >
351351 </ select >
352+
353+ < select name ="keep-native " id ="keep-native " class ="should-be-native ">
354+ < option > </ option >
355+ </ select >
352356</ div >
353357
354358
Original file line number Diff line number Diff line change 334334 same ( window . encodedValueIsDefined , true ) ;
335335 } ) ;
336336
337+ $ . mobile . page . prototype . options . keepNative = "select.should-be-native" ;
338+
339+ // not testing the positive case here since's it's obviously tested elsewhere
340+ test ( "select elements in the keepNative set shouldn't be enhanced" , function ( ) {
341+ ok ( ! $ ( "#keep-native" ) . parent ( ) . is ( "div.ui-btn" ) ) ;
342+ } ) ;
337343} ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments