mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
test to cover text inputs without types
This commit is contained in:
parent
aa679a9b0f
commit
e8f87f864f
2 changed files with 39 additions and 0 deletions
29
tests/unit/textinput/index.html
Normal file
29
tests/unit/textinput/index.html
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>jQuery Mobile Textinput Test Suite</title>
|
||||
|
||||
<script src="../../../js/jquery.js"></script>
|
||||
<script src="../jquery.setNameSpace.js"></script>
|
||||
<script src="../../../external/qunit.js"></script>
|
||||
<script src="../../../js/"></script>
|
||||
<link rel="stylesheet" href="../../../themes/default" />
|
||||
<link rel="stylesheet" href="../../../external/qunit.css"/>
|
||||
|
||||
<script src="textinput_core.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1 id="qunit-header">jQuery Mobile Textinput Test Suite</h1>
|
||||
<h2 id="qunit-banner"></h2>
|
||||
<h2 id="qunit-userAgent"></h2>
|
||||
<ol id="qunit-tests">
|
||||
</ol>
|
||||
|
||||
<div data-nstest-role="page">
|
||||
<input name="" id="typeless-input" />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
10
tests/unit/textinput/textinput_core.js
Normal file
10
tests/unit/textinput/textinput_core.js
Normal file
|
|
@ -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);
|
||||
Loading…
Reference in a new issue