mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-21 16:30:26 +00:00
17 lines
No EOL
542 B
JavaScript
17 lines
No EOL
542 B
JavaScript
/*
|
|
* mobile textinput unit tests
|
|
*/
|
|
(function($){
|
|
module( "jquery.mobile.forms.textinput.js" );
|
|
|
|
test( "inputs without type specified are enhanced", function(){
|
|
ok( $( "#typeless-input" ).hasClass( "ui-input-text" ) );
|
|
});
|
|
|
|
$.mobile.page.prototype.options.keepNative = "textarea.should-be-native";
|
|
|
|
// not testing the positive case here since's it's obviously tested elsewhere
|
|
test( "textarea in the keepNative set shouldn't be enhanced", function() {
|
|
ok( !$("textarea.should-be-native").is("ui-input-text") );
|
|
});
|
|
})(jQuery); |