File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,13 @@ <h2 id="qunit-userAgent"></h2>
2828< ol id ="qunit-tests ">
2929</ ol >
3030
31- < div id ="foo " data-nstest-role ="page ">
31+ < div id ="foo " data-nstest-role ="page " class =" foo-class " >
3232 < a href ="#bar " data-nstest-transition ="flip "> </ a >
3333</ div >
3434
35+ < div id ="foozball " data-nstest-role ="page ">
36+ </ div >
37+
3538< div id ="bar " data-nstest-role ="page ">
3639 < a href ="#baz "> </ a >
3740</ div >
Original file line number Diff line number Diff line change 476476 }
477477 ] ) ;
478478 } ) ;
479+
480+ asyncTest ( "refresh of a dialog url should not duplicate page" , function ( ) {
481+
482+ $ . testHelper . pageSequence ( [
483+ // open our test page
484+ function ( ) {
485+ same ( $ ( ".foo-class" ) . length , 1 , "should only have one instance of foo-class in the document" ) ;
486+ location . hash = "#foo&ui-state=dialog" ;
487+ } ,
488+
489+ function ( ) {
490+ same ( location . hash , "#foo&ui-state=dialog" , "hash should match what was loaded" ) ;
491+ same ( $ ( ".foo-class" ) . length , 1 , "should only have one instance of foo-class in the document" ) ;
492+ start ( ) ;
493+ }
494+ ] ) ;
495+ } ) ;
479496} ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments