From e8f87f864f6441aae70b2c4fc83a3fc93b071c28 Mon Sep 17 00:00:00 2001 From: John Bender Date: Fri, 23 Sep 2011 20:45:55 -0700 Subject: [PATCH] test to cover text inputs without types --- tests/unit/textinput/index.html | 29 ++++++++++++++++++++++++++ tests/unit/textinput/textinput_core.js | 10 +++++++++ 2 files changed, 39 insertions(+) create mode 100644 tests/unit/textinput/index.html create mode 100644 tests/unit/textinput/textinput_core.js diff --git a/tests/unit/textinput/index.html b/tests/unit/textinput/index.html new file mode 100644 index 00000000..07542d3d --- /dev/null +++ b/tests/unit/textinput/index.html @@ -0,0 +1,29 @@ + + + + + + jQuery Mobile Textinput Test Suite + + + + + + + + + + + + +

jQuery Mobile Textinput Test Suite

+

+

+
    +
+ +
+ +
+ + diff --git a/tests/unit/textinput/textinput_core.js b/tests/unit/textinput/textinput_core.js new file mode 100644 index 00000000..a445759a --- /dev/null +++ b/tests/unit/textinput/textinput_core.js @@ -0,0 +1,10 @@ +/* + * 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" ) ); + }); +})(jQuery); \ No newline at end of file