File: index.html

package info (click to toggle)
apertium-regtest 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 244 kB
  • sloc: python: 1,268; javascript: 984; makefile: 19
file content (167 lines) | stat: -rw-r--r-- 6,878 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>…loading…</title>

	<script src="jquery.js"></script>
	<script src="bootstrap.js"></script>
	<script src="diff.js"></script>
	<link rel="stylesheet" type="text/css" href="bootstrap.css">

	<link rel="stylesheet" type="text/css" href="regtest.css">
	<script src="regtest.js"></script>

	<link rel="stylesheet" type="text/css" href="local.css">
	<script src="local.js"></script>
</head>
<body>
<div class="container-fluid">

<div style="position: fixed; top: 20px; right: 20px; z-index: 99999;" id="toasts">
</div>

<div class="row"><div class="col my-1">
	<h1 id="title">…loading…</h1>
</div></div>

<form>
<div class="form-group row">
<div class="col-sm-2 col-form-label my-1">
	Run regression test for:
</div>
<div class="col-sm-10 col-form-label my-1">
	<button tabindex="-1" type="button" class="btn btn-sm btn-outline-info my-1 btnRun" data-which="*">All Corpora</button>
	<span id="rt-corpora-run"></span>
</div>
</div>

<div class="form-group row">
<div class="col-sm-2 col-form-label my-1">
	Corpus filter:
</div>
<div class="col-sm-10 col-form-label my-1">
	<button tabindex="-1" type="button" class="btn btn-sm btn-outline-primary my-1 active btnFilter" data-which="*">All Corpora</button>
	<span id="rt-corpora-filter"></span>
</div>
</div>

<div class="form-group row">
<div class="col-sm-2 col-form-label my-1">
	Select tab:
</div>
<div class="col-sm-10 col-form-label my-1">
	<button tabindex="-1" type="button" class="btn btn-sm btn-outline-primary my-1 active btnSelectTab" data-which="*FIRST">First Change</button>
	<button tabindex="-1" type="button" class="btn btn-sm btn-outline-primary my-1 btnSelectTab" data-which="*LAST">Last Change</button>
	&nbsp;
	<span id="rt-corpora-tabs"></span>
	&nbsp;
</div>
</div>

<!-- TODO: if this list gets large, add a show/hide button for it -->
<div class="form-group row">
    <div class="col-sm-2 col-form-label my-1">
        More filters:
    </div>
    <div class="col-sm-10 col-form-label my-1">
        <button tabindex="-1" type="button"  class="btn btn-sm btn-outline-primary my-1 active btnFilterGold" data-which="*">All Entries</button>
		<button tabindex="-1" type="button" class="btn btn-sm btn-outline-primary my-2 btnToggleUnchanged">Show/Hide Unchanged Results</button>
        <button tabindex="-1" type="button"  class="btn btn-sm btn-outline-primary my-1 btnFilterGold" data-which="no-gold">No Gold</button>
        <button tabindex="-1" type="button"  class="btn btn-sm btn-outline-primary my-1 btnFilterGold" data-which="unmatched-gold">Unmatched Gold</button>
    </div>
</div>
<div class="form-group row">
    <div class="col-sm-2 col-form-label my-1">
        Display diff as:
    </div>
    <div class="col-sm-2 col-form-label my-1">
        <select class="form-select form-select-sm" title="Hide insertions or deletions in diff" id="selectDiffModeAll">
            <option selected value="ins,del">Diff</option>
            <option value="ins">Inserted</option>
            <option value="del">Deleted</option>
        </select>
    </div>
</form>

<div class="row rt-added"><div class="col my-1">
	<hr>
	<div class="container-fluid">
		<h2>Added Inputs</h2>
		<table class="table table-striped table-sm my-1" id="rt-added">
		</table>
	</div>
</div></div>

<div class="row rt-deleted"><div class="col my-1">
	<hr>
	<div class="container-fluid">
		<h2>Deleted Inputs</h2>
		<table class="table table-striped table-sm my-1" id="rt-deleted">
		</table>
	</div>
</div></div>

<div class="row rt-add-del-warn"><div class="col my-1">
	<hr>
	<div class="alert alert-danger my-1">There were changes in the input! If you accept any changes below, the input changes will all be accepted as well. If you do not want this, fix the input files and rerun the test before continuing.</div>
	<div class="text-center" id="rt-nd-btns"></div>
</div></div>

<div class="row rt-changes"><div class="col my-1">
	<hr>
	<div class="container-fluid">
		<div class="row">
		<div class="col my-1">
			<h2>Inputs <span class="rt-count rt-count-total"></span></h2>
		</div>
		<div class="col my-1 text-right">
			<span class="rt-pages"></span>
		</div>
		</div>
		<div class="row"><div class="col my-1">
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-success my-2 btnAcceptAllUntil">…</button>
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-success my-2 btnAcceptAll">Accept All Results</button>
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-success my-2 btnAcceptUnchanged">Accept Unchanged Results</button>
			<br>
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-success my-2 btnCheckedAcceptUntil">…</button>
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-success my-2 btnCheckedAccept">Accept Checked Results</button>
			<span class="rtGold">
			&nbsp;
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-warning my-2 btnCheckedGoldReplace">Replace Checked as Gold</button>
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-warning my-2 btnCheckedGoldAdd">Add Checked as Gold</button>
			</span>
			&nbsp;
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-primary my-2 btnCheckedInvert">Invert Checks</button>
		</div></div>
		<div class="row"><div class="col my-1">
			<span id="rt-changes"></span>
		</div></div>
		<div class="row"><div class="col my-1">
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-success my-2 btnCheckedAcceptUntil">…</button>
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-success my-2 btnCheckedAccept">Accept Checked Results</button>
			<span class="rtGold">
			&nbsp;
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-warning my-2 btnCheckedGoldReplace">Replace Checked as Gold</button>
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-warning my-2 btnCheckedGoldAdd">Add Checked as Gold</button>
			</span>
			&nbsp;
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-primary my-2 btnCheckedInvert">Invert Checks</button>
			<br>
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-success my-2 btnAcceptAllUntil">…</button>
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-success my-2 btnAcceptAll">Accept All Results</button>
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-success my-2 btnAcceptUnchanged">Accept Unchanged Results</button>
			&nbsp;
			<button tabindex="-1" type="button" class="btn btn-sm btn-outline-primary my-2 btnToggleUnchanged">Show/Hide Unchanged Results</button>
		</div></div>
		<div class="col my-1 text-right">
			<span class="rt-pages"></span>
		</div>
	</div>
</div></div>

</div>

</body>
</html>