Skip to content

Commit f36a8c6

Browse files
author
Gabriel Schulhof
committed
[hashchange functional test] Adding simple nav menu to study jquery-archive#5094
1 parent 9951fca commit f36a8c6

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/functional/hashchange/hashchange.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,17 @@
2727
<div data-role="page" id="hashChangePage">
2828
<div data-role="header">
2929
<a href="#popup" data-rel="popup">Popup</a>
30+
<a href="#navMenuForAPage" data-rel="popup">Go To</a>
3031
<h1>A page</h1>
3132
</div>
3233
<div data-role="content">
34+
<div data-role="popup" data-transition="slideup" id="navMenuForAPage">
35+
<div data-role="collapsible">
36+
<h3>Navigation</h3>
37+
<a href="hashchange.html" data-role="button">A page</a>
38+
<a href="hashchange1.html" data-role="button">Another page</a>
39+
</div>
40+
</div>
3341
<a data-role="button" href="#common">Common</a>
3442
<a data-role="button" href="hashchange1.html">Another page</a>
3543
<a data-role="button" href="#page2">A page: internal page</a>

tests/functional/hashchange/hashchange1.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,17 @@
1414
<body>
1515
<div data-role="page">
1616
<div data-role="header">
17+
<a class="ui-btn-right" href="#navMenuForAnotherPage" data-rel="popup">Go To</a>
1718
<h1>Another page</h1>
1819
</div>
1920
<div data-role="content">
21+
<div data-role="popup" data-transition="slideup" id="navMenuForAnotherPage">
22+
<div data-role="collapsible">
23+
<h3>Navigation</h3>
24+
<a href="hashchange.html" data-role="button">A page</a>
25+
<a href="hashchange1.html" data-role="button">Another page</a>
26+
</div>
27+
</div>
2028
<a data-role="button" href="hashchange.html">A page</a>
2129
<a data-role="button" href="hashchange2.html">Yet another page</a>
2230
<div id="another-popup" data-role="popup">

0 commit comments

Comments
 (0)