Skip to content

Commit 2065a19

Browse files
committed
moved jstrebs integration tests under the unit folder, made it look a bit like the others, and changed the styling to move pages off the screen
1 parent 4c4b804 commit 2065a19

File tree

4 files changed

+221
-203
lines changed

4 files changed

+221
-203
lines changed

tests/integration/listviews/listview_integration.js

Lines changed: 0 additions & 197 deletions
This file was deleted.

tests/jquery.testHelper.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@
4646
return result;
4747
};
4848
},
49-
49+
5050
hideActivePageWhenComplete: function() {
5151
if( $('#qunit-testresult').length > 0 ) {
5252
$('.ui-page-active').css('display', 'none');
53-
//location.href = location.href.split('#')[0];
5453
} else {
5554
setTimeout($.testHelper.hideActivePageWhenComplete, 500);
5655
}
Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<link rel="stylesheet" href="../../../external/qunit.css" type="text/css"/>
1111
<script type="text/javascript" src="../../../external/qunit.js"></script>
1212

13-
<script type="text/javascript" src="listview_integration.js"></script>
13+
<script type="text/javascript" src="listview_core.js"></script>
1414
</head>
1515
<body>
1616

@@ -20,6 +20,19 @@ <h2 id="qunit-userAgent"></h2>
2020
<ol id="qunit-tests">
2121
</ol>
2222

23+
<style>
24+
[data-role='page'] {
25+
position: absolute;
26+
top: -10000px;
27+
left: -10000px;
28+
}
29+
30+
/* maintain styling */
31+
.ui-mobile-viewport {
32+
margin: 8px;
33+
}
34+
</style>
35+
2336
<!-- Basic Linked view test -->
2437
<div data-role="page" id='basic-linked-test'>
2538
<div data-role="header" data-position="inline">
@@ -108,15 +121,15 @@ <h1>Split List View</h1>
108121
<ul data-role="listview">
109122
<li>
110123
<a href="#split-list-link1">link one</a>
111-
<a href="#split-list-link2">link second</a>
124+
<a href="#split-list-link2">link second</a>
112125
</li>
113126
<li>
114127
<a href="#split-list-link1">link one</a>
115-
<a href="#split-list-link2">link second</a>
128+
<a href="#split-list-link2">link second</a>
116129
</li>
117130
<li>
118131
<a href="#split-list-link1">link one</a>
119-
<a href="#split-list-link2">link second</a>
132+
<a href="#split-list-link2">link second</a>
120133
</li>
121134
</ul>
122135
</div>

0 commit comments

Comments
 (0)