File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed
Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1111 < script src ="../../../tests/jquery.testHelper.js "> </ script >
1212 < script >
1313 $ . testHelper . asyncLoad ( [
14- [
15- "jquery.mobile.forms.textinput"
16- ] ,
14+ [ "jquery.mobile.forms.textinput" ] ,
15+ [ "settings.js" ] ,
1716 [ "jquery.mobile.init" ] ,
18- [
19- "textinput_core.js"
20- ]
17+ [ "textinput_core.js" ]
2118 ] ) ;
2219 </ script >
2320
@@ -56,7 +53,7 @@ <h2 id="qunit-userAgent"></h2>
5653 < textarea id ="keyup-autogrow ">
5754 </ textarea >
5855 < a href ="external.html " id ="external "> external</ a >
59-
56+
6057 < input type ="search " id ="search-input ">
6158</ div >
6259</ body >
Original file line number Diff line number Diff line change 1+ $ ( document ) . bind ( "mobileinit" , function ( ) {
2+ $ . mobile . textinput . prototype . options . clearSearchButtonText = "custom value" ;
3+ } ) ;
Original file line number Diff line number Diff line change 5858 }
5959 ] ) ;
6060 } ) ;
61-
62- $ . mobile . textinput . prototype . options . clearSearchButtonText = "custom value" ;
63-
64- test ( "\"clear text\" button for search inputs should use configured text" , function ( ) {
61+
62+ // NOTE init binding to alter the setting is in settings.js
63+ test ( "'clear text' button for search inputs should use configured text" , function ( ) {
6564 strictEqual ( $ ( "#search-input" ) . closest ( ".ui-input-search" ) . find ( ".ui-input-clear" ) . attr ( "title" ) , "custom value" ) ;
6665 } ) ;
6766} ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments