File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 3
3
< head >
4
4
</ head >
5
5
< body >
6
- < div data-nstest-role ="page " data-nstest-url ="foo/ " data-other ="for testing ">
6
+ < div data-nstest-role ="page " data-nstest-url ="foo/ " data-other ="for testing ">
7
+ This text intentionally left blank
7
8
</ div >
8
9
</ body >
9
10
</ html >
Original file line number Diff line number Diff line change @@ -145,5 +145,17 @@ <h1>Dialog</h1>
145
145
146
146
< div id ="nested-dialog-second " data-nstest-role ="dialog ">
147
147
</ div >
148
+
149
+ < div id ="relative-after-embeded-page-first " data-nstest-role ="page ">
150
+ < div data-nstest-role ="content ">
151
+ < a href ="#relative-after-embeded-page-second "> second page</ a >
152
+ </ div >
153
+ </ div >
154
+
155
+ < div id ="relative-after-embeded-page-second " data-nstest-role ="page ">
156
+ < div data-nstest-role ="content ">
157
+ < a href ="data-url-tests/data-url.html "> file path page</ a >
158
+ </ div >
159
+ </ div >
148
160
</ body >
149
161
</ html >
Original file line number Diff line number Diff line change 327
327
start ( ) ;
328
328
} ] , 1000 ) ;
329
329
} ) ;
330
+
331
+ asyncTest ( "loading a relative file path after an embeded page works" , function ( ) {
332
+ $ . testHelper . openPage ( "#relative-after-embeded-page-first" ) ;
333
+
334
+ $ . testHelper . sequence ( [
335
+ // transition second page
336
+ function ( ) { $ ( "#relative-after-embeded-page-first a" ) . click ( ) ; } ,
337
+
338
+ // transition to the relative ajax loaded page
339
+ function ( ) { $ ( "#relative-after-embeded-page-second a" ) . click ( ) ; } ,
340
+
341
+ // make sure the page was loaded properly via ajax
342
+ function ( ) {
343
+ // data attribute intentionally left without namespace
344
+ same ( $ ( ".ui-page-active" ) . data ( "other" ) , "for testing" , "should be relative ajax loaded page" ) ;
345
+ start ( ) ;
346
+ } ] , 1000 ) ;
347
+ } ) ;
330
348
} ) ( jQuery ) ;
331
349
You can’t perform that action at this time.
0 commit comments