File tree Expand file tree Collapse file tree 3 files changed +29
-12
lines changed Expand file tree Collapse file tree 3 files changed +29
-12
lines changed Original file line number Diff line number Diff line change 211
211
start ( ) ;
212
212
} , 500 ) ;
213
213
} ) ;
214
-
215
- asyncTest ( "page element is generated when not present in initial markup" , function ( ) {
216
- expect ( 1 ) ;
217
-
218
- $ ( "<iframe src='nopage.html'>" ) . appendTo ( "body" ) . load ( function ( ) {
219
- ok ( $ ( this ) . contents ( ) . find ( ".ui-page" ) . length , 1 ) ;
220
- $ ( this ) . remove ( ) ;
221
- start ( ) ;
222
- } ) ;
223
- } ) ;
214
+
224
215
225
216
asyncTest ( "page element is generated when not present in ajax'd markup" , function ( ) {
226
217
expect ( 1 ) ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * mobile init tests
3
+ */
4
+ ( function ( $ ) {
5
+
6
+
7
+ test ( "page element is generated when not present in initial markup" , function ( ) {
8
+ ok ( $ ( ".ui-page" ) . length , 1 ) ;
9
+ } ) ;
10
+
11
+
12
+ } ) ( jQuery ) ;
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="UTF-8 " />
5
5
< title > jQuery Mobile Init Test Suite</ title >
6
+ <!-- meta viewport left out on purpose for test append -->
6
7
< script src ="../../../js/jquery.js "> </ script >
7
8
< script src ="../jquery.setNameSpace.js "> </ script >
8
9
< script src ="../../../js/ "> </ script >
9
-
10
+ < script src ="../../../external/qunit.js "> </ script >
11
+ < script src ="../../jquery.testHelper.js "> </ script >
12
+ < script src ="init_core_nopage.js "> </ script >
13
+ < link rel ="stylesheet " href ="../../../themes/default " />
14
+ < link rel ="stylesheet " href ="../../../external/qunit.css "/>
15
+ < style >
16
+ [data-nstest-role = "page" ], [data-nstest-role = "dialog" ] {
17
+ position : static !important ;
18
+ }
19
+ </ style >
10
20
</ head >
11
21
12
- < p > testing</ p >
22
+ < h1 id ="qunit-header "> jQuery Mobile Init Test Suite</ h1 >
23
+ < h2 id ="qunit-banner "> </ h2 >
24
+ < h2 id ="qunit-userAgent "> </ h2 >
25
+ < ol id ="qunit-tests ">
26
+ </ ol >
13
27
14
28
</ body >
15
29
</ html >
You can’t perform that action at this time.
0 commit comments