Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit e8f87f8

Browse files
committed
test to cover text inputs without types
1 parent aa679a9 commit e8f87f8

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

tests/unit/textinput/index.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>jQuery Mobile Textinput Test Suite</title>
7+
8+
<script src="../../../js/jquery.js"></script>
9+
<script src="../jquery.setNameSpace.js"></script>
10+
<script src="../../../external/qunit.js"></script>
11+
<script src="../../../js/"></script>
12+
<link rel="stylesheet" href="../../../themes/default" />
13+
<link rel="stylesheet" href="../../../external/qunit.css"/>
14+
15+
<script src="textinput_core.js"></script>
16+
</head>
17+
<body>
18+
19+
<h1 id="qunit-header">jQuery Mobile Textinput Test Suite</h1>
20+
<h2 id="qunit-banner"></h2>
21+
<h2 id="qunit-userAgent"></h2>
22+
<ol id="qunit-tests">
23+
</ol>
24+
25+
<div data-nstest-role="page">
26+
<input name="" id="typeless-input" />
27+
</div>
28+
</body>
29+
</html>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* mobile textinput unit tests
3+
*/
4+
(function($){
5+
module( "jquery.mobile.forms.textinput.js" );
6+
7+
test( "inputs without type specified are enhanced", function(){
8+
ok( $( "#typeless-input" ).hasClass( "ui-input-text" ) );
9+
});
10+
})(jQuery);

0 commit comments

Comments
 (0)