Skip to content

Commit c0f6b0c

Browse files
committed
Tests: Cleaned up index pages. Fixes #7374 - Broken link to Static and Visual tests (Index of Static and Visual tests do not exist).
1 parent 00375d9 commit c0f6b0c

File tree

5 files changed

+146
-44
lines changed

5 files changed

+146
-44
lines changed

tests/index.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
body {
2+
font-size: 62.5%;
3+
}
4+
.ui-widget-header {
5+
padding: 0.2em 0.5em;
6+
margin: 0;
7+
}
8+
.ui-widget-content {
9+
padding: 1em;
10+
margin-bottom: 1em;
11+
}
12+
p {
13+
margin: 0;
14+
}
15+
ul {
16+
margin: 0;
17+
list-style: none;
18+
}
19+
li {
20+
line-height: 2em;
21+
}

tests/index.html

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8" />
4+
<meta charset="utf-8">
55
<title>jQuery UI Tests</title>
6-
<link rel="stylesheet" href="../themes/base/jquery.ui.all.css" type="text/css" />
7-
<script type="text/javascript" src="../jquery-1.7.2.js"></script>
8-
<link rel="stylesheet" href="tests.css" type="text/css" />
9-
<script type="text/javascript" src="tests.js"></script>
6+
<link rel="stylesheet" href="../../themes/base/jquery.ui.core.css">
7+
<link rel="stylesheet" href="../../themes/base/jquery.ui.theme.css">
8+
<link rel="stylesheet" href="index.css">
9+
<script src="jquery.js"></script>
10+
<script src="index.js"></script>
1011
</head>
1112
<body>
1213

13-
<h1>jQuery UI Tests</h1>
14+
<div id="main">
15+
<h1>jQuery UI Tests</h1>
16+
<div>
17+
<h2>Unit Tests</h2>
18+
<p><a href="unit/index.html">Unit tests</a> exist for all functionality in jQuery UI.
19+
The unit tests can be run locally (some tests require a web server with PHP)
20+
to ensure proper functionality before committing changes.
21+
The unit tests are also run on <a href="http://swarm.jquery.com/user/jqueryui">TestSwarm</a>
22+
for every commit.</p>
1423

15-
<h2><a href="static/index.html">Static Tests</a></h2>
16-
17-
<h2><a href="unit/index.html">Unit Tests</a></h2>
18-
19-
<h2><a href="visual/index.html">Visual Tests</a></h2>
24+
<h2>Visual Tests</h2>
25+
<p><a href="visual/index.html">Visual tests</a> only exist in cases where we can't verify proper functionality
26+
with unit tests. These may be either purely visual or just hard to automate.
27+
Most visual tests will provide a description of what is happening on the page
28+
and what to look for.</p>
29+
</div>
30+
</div>
2031

2132
</body>
2233
</html>

tests/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
$(function() {
2+
3+
$( "#main" )
4+
.addClass( "ui-widget" )
5+
.find( "h1, h2" )
6+
.addClass( "ui-widget-header ui-corner-top" )
7+
.next()
8+
.addClass( "ui-widget-content ui-corner-bottom" );
9+
10+
});

tests/unit/index.html

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,9 @@
66

77
<link rel="stylesheet" href="../../themes/base/jquery.ui.core.css">
88
<link rel="stylesheet" href="../../themes/base/jquery.ui.theme.css">
9-
<style>
10-
body {
11-
font-size: 62.5%;
12-
}
13-
.ui-widget-header {
14-
padding: 0.2em 0.5em;
15-
margin: 0;
16-
}
17-
.ui-widget-content {
18-
padding: 1em;
19-
margin-bottom: 1em;
20-
}
21-
ul {
22-
margin: 0;
23-
list-style: none;
24-
}
25-
li {
26-
line-height: 2em;
27-
}
28-
</style>
29-
9+
<link rel="stylesheet" href="../index.css">
3010
<script src="../jquery.js"></script>
31-
<script>
32-
$(function() {
33-
$( "#main" )
34-
.addClass( "ui-widget" )
35-
.find( "h1, h2" )
36-
.addClass( "ui-widget-header ui-corner-top" )
37-
.next()
38-
.addClass( "ui-widget-content ui-corner-bottom" );
39-
40-
});
41-
</script>
11+
<script src="../index.js"></script>
4212
</head>
4313
<body>
4414

tests/visual/index.html

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>jQuery UI Visual Tests</title>
6+
7+
<link rel="stylesheet" href="../../themes/base/jquery.ui.core.css">
8+
<link rel="stylesheet" href="../../themes/base/jquery.ui.theme.css">
9+
<link rel="stylesheet" href="../index.css">
10+
<script src="../jquery.js"></script>
11+
<script src="../index.js"></script>
12+
</head>
13+
<body>
14+
15+
<div id="main">
16+
<h1>jQuery UI Visual Tests</h1>
17+
<div>
18+
<h2>Accordion</h2>
19+
<ul>
20+
<li><a href="accordion/icons.html">Icons</a></li>
21+
</ul>
22+
23+
<h2>addClass</h2>
24+
<ul>
25+
<li><a href="addClass/queue.html">Queue</a></li>
26+
</ul>
27+
28+
<h2>Button</h2>
29+
<ul>
30+
<li><a href="button/button.html">General</a></li>
31+
<li><a href="butotn/performance.html">Performance</a></li>
32+
</ul>
33+
34+
<h2>Dialog</h2>
35+
<ul>
36+
<li><a href="dialog/performance.html">Performance</a></li>
37+
</ul>
38+
39+
<h2>Effects</h2>
40+
<ul>
41+
<li><a href="effects/all.html">All</a></li>
42+
<li><a href="effects/scale.html">Scale</a></li>
43+
</ul>
44+
45+
<h2>Menu</h2>
46+
<ul>
47+
<li><a href="menu/menu.html">General</a></li>
48+
<li><a href="menu/drilldown.html">Drilldown</a></li>
49+
<li><a href="menu/tablemenu.html">Table-based</a></li>
50+
</ul>
51+
52+
<h2>Position</h2>
53+
<ul>
54+
<li><a href="position/position.html">General</a></li>
55+
<li><a href="position/position_feedback.html">Feedback</a></li>
56+
<li><a href="position/position_feedback_rotate.html">Feedback (rotate)</a></li>
57+
<li><a href="position/position_fit.html">Collision - fit</a></li>
58+
<li><a href="position/position_flip.html">Collision - flip</a></li>
59+
<li><a href="position/position_flipfit.html">Collision - flipfit</a></li>
60+
<li><a href="position/position_margin.html">Margins</a></li>
61+
<li><a href="position/position_within.html">Within</a></li>
62+
</ul>
63+
64+
<h2>Tooltip</h2>
65+
<ul>
66+
<li><a href="tooltip/tooltip.html">General</a></li>
67+
<li><a href="tooltip/animations.html">Animations</a></li>
68+
</ul>
69+
70+
<h2>Compound</h2>
71+
<ul>
72+
<li><a href="compound/accordion_tabs.html">Accordion in Tabs</a></li>
73+
<li><a href="compound/datepicker_dialog.html">Datepicker in Dialog</a></li>
74+
<li><a href="compound/dialog_widgets.html">Various Widgets in Dialog</a></li>
75+
<li><a href="compound/draggable_accordion.html">Draggable Accordion</a></li>
76+
<li><a href="compound/draggable_accordion_accordion_tabs_draggable.html">Nested Widgets</a></li>
77+
<li><a href="compound/sortable_accordion_sortable_tabs.html">Sortable Tabs in Sortable Accordion</a></li>
78+
<li><a href="compound/tabs_tabs.html">Nested Tabs</a></li>
79+
<li><a href="compound/tabs_tooltip.html">Tabs with Tooltips</a></li>
80+
</ul>
81+
82+
<h2>General</h2>
83+
<ul>
84+
<li><a href="theme.html">Theme</a></li>
85+
</ul>
86+
</div>
87+
</div>
88+
89+
</body>
90+
</html>

0 commit comments

Comments
 (0)