qunitx 0.3.6 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/package.json +10 -13
  2. package/vendor/qunit.css +91 -48
  3. package/vendor/qunit.js +1300 -1935
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "qunitx",
3
3
  "type": "module",
4
- "version": "0.3.6",
4
+ "version": "0.3.8",
5
5
  "description": "Experimental improvements, suggestions for qunit CLI",
6
6
  "author": "Izel Nakri",
7
7
  "license": "MIT",
@@ -28,19 +28,19 @@
28
28
  "release:alpha": "node_modules/.bin/release-it --preRelease=alpha --no-git.requireUpstream",
29
29
  "release:beta": "node_modules/.bin/release-it --preRelease=beta --no-git.requireUpstream",
30
30
  "release": "node_modules/.bin/release-it",
31
- "test": "node_modules/.bin/mocha --require test/setup.js --bail --check-leaks -p -t=20000",
32
- "test:all": "node_modules/.bin/mocha --require test/setup.js --bail --check-leaks test/inputs test/commands test/flags/after-test.js test/flags/before-test.js -p -t=20000",
31
+ "test": "node --test test/index.js",
32
+ "test:old": "node_modules/.bin/mocha --require test/setup.js --bail --exit --check-leaks test/inputs test/commands test/flags/after-test.js test/flags/before-test.js -t=20000",
33
33
  "test:sanity-first": "./cli.js test/helpers/failing-tests.js test/helpers/failing-tests.ts",
34
34
  "test:sanity-second": "./cli.js test/helpers/passing-tests.js test/helpers/passing-tests.ts"
35
35
  },
36
36
  "dependencies": {
37
- "@nanoexpress/middleware-static-serve": "^1.0.3",
37
+ "@nanoexpress/middleware-static-serve": "^1.0.4",
38
38
  "cheerio": "^1.0.0-rc.10",
39
39
  "chokidar": "^3.5.3",
40
40
  "esbuild": "^0.14.25",
41
41
  "js-yaml": "^4.1.0",
42
- "kleur": "^4.1.4",
43
- "nanoexpress": "5.2.4",
42
+ "kleur": "^4.1.5",
43
+ "nanoexpress": "^6.1.0",
44
44
  "picomatch": "^2.3.1",
45
45
  "puppeteer": "13.5.2",
46
46
  "recursive-lookup": "1.0.0",
@@ -48,18 +48,15 @@
48
48
  },
49
49
  "devDependencies": {
50
50
  "auto-changelog": "^2.4.0",
51
- "axios": "^0.26.1",
52
51
  "cors": "^2.8.5",
53
52
  "express": "^4.17.3",
54
- "mocha": "^9.2.1",
55
- "prettier": "^2.5.1",
53
+ "prettier": "^2.8.8",
56
54
  "qunit": "^2.18.0",
57
- "qunitx": "^0.3.5",
58
- "release-it": "^14.12.5",
59
- "uuid": "^8.3.2"
55
+ "qunitx": "^0.3.6",
56
+ "release-it": "^15.10.3"
60
57
  },
61
58
  "volta": {
62
- "node": "16.13.2"
59
+ "node": "19.9.0"
63
60
  },
64
61
  "prettier": {
65
62
  "printWidth": 100,
package/vendor/qunit.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * QUnit 2.18.1
2
+ * QUnit 2.19.4
3
3
  * https://qunitjs.com/
4
4
  *
5
5
  * Copyright OpenJS Foundation and other contributors
@@ -9,17 +9,6 @@
9
9
 
10
10
  /** Font Family and Sizes */
11
11
 
12
- /* Style our buttons in a simple way, uninfluenced by the styles
13
- the tested app might load. Don't affect buttons in #qunit-fixture!
14
- https://github.com/qunitjs/qunit/pull/1395
15
- https://github.com/qunitjs/qunit/issues/1437 */
16
- #qunit-testrunner-toolbar button,
17
- #qunit-testresult button {
18
- font-size: initial;
19
- border: initial;
20
- background-color: buttonface;
21
- }
22
-
23
12
  #qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult {
24
13
  font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
25
14
  }
@@ -35,6 +24,20 @@
35
24
  padding: 0;
36
25
  }
37
26
 
27
+ /* Style our buttons in a simple way, uninfluenced by the styles
28
+ the tested app might load. Don't affect buttons in #qunit-fixture!
29
+ https://github.com/qunitjs/qunit/pull/1395
30
+ https://github.com/qunitjs/qunit/issues/1437 */
31
+ #qunit-testrunner-toolbar button,
32
+ #qunit-testresult button {
33
+ all: unset; /* best effort, modern browsers only */
34
+ font: inherit;
35
+ color: initial;
36
+ border: initial;
37
+ background-color: buttonface;
38
+ padding: 0 4px;
39
+ }
40
+
38
41
 
39
42
  /** Fixed headers with scrollable tests */
40
43
 
@@ -134,8 +137,46 @@
134
137
  height: 1.6em;
135
138
  }
136
139
 
140
+ #qunit-testrunner-toolbar button,
141
+ #qunit-testresult button {
142
+ border-radius: .25em;
143
+ border: 1px solid #AAA;
144
+ background-color: #F8F8F8;
145
+ color: #222;
146
+ line-height: 1.6;
147
+ cursor: pointer;
148
+ }
149
+ #qunit-testrunner-toolbar button:hover,
150
+ #qunit-testresult button:hover {
151
+ border-color: #AAA;
152
+ background-color: #FFF;
153
+ color: #444;
154
+ }
155
+ #qunit-testrunner-toolbar button:active,
156
+ #qunit-testresult button:active {
157
+ border-color: #777;
158
+ background-color: #CCC;
159
+ color: #000;
160
+ }
161
+ #qunit-testrunner-toolbar button:focus,
162
+ #qunit-testresult button:focus {
163
+ border-color: #2F68DA;
164
+ /* emulate 2px border without a layout shift */
165
+ box-shadow: inset 0 0 0 1px #2F68DA
166
+ }
167
+ #qunit-testrunner-toolbar button:disabled,
168
+ #qunit-testresult button:disabled {
169
+ border-color: #CCC;
170
+ background-color: #CCC;
171
+ color: #FFF;
172
+ cursor: default;
173
+ }
174
+
137
175
  #qunit-toolbar-filters {
138
176
  float: right;
177
+ /* aligning right avoids overflows and inefficient use of space
178
+ around the dropdown menu on narrow viewports */
179
+ text-align: right;
139
180
  }
140
181
 
141
182
  .qunit-url-config,
@@ -143,6 +184,7 @@
143
184
  #qunit-modulefilter {
144
185
  display: inline-block;
145
186
  line-height: 2.1em;
187
+ text-align: left;
146
188
  }
147
189
 
148
190
  .qunit-filter,
@@ -158,11 +200,17 @@
158
200
  #qunit-modulefilter-search {
159
201
  box-sizing: border-box;
160
202
  min-width: 400px;
203
+ min-width: min(400px, 80vw);
161
204
  }
162
205
 
206
+ #qunit-modulefilter-search-container {
207
+ position: relative;
208
+ }
163
209
  #qunit-modulefilter-search-container:after {
164
210
  position: absolute;
165
211
  right: 0.3em;
212
+ bottom: 0;
213
+ line-height: 100%;
166
214
  content: "\25bc";
167
215
  color: black;
168
216
  }
@@ -171,42 +219,37 @@
171
219
  /* align with #qunit-modulefilter-search */
172
220
  box-sizing: border-box;
173
221
  min-width: 400px;
222
+ min-width: min(400px, 80vw);
223
+ max-width: 80vw;
174
224
  position: absolute;
175
225
  right: 0;
176
- top: 50%;
177
- margin-top: 0.8em;
226
+ top: 100%;
227
+ margin-top: 2px;
178
228
 
179
- border: 1px solid #D3D3D3;
180
- border-top: none;
229
+ /* ensure that when on a narrow viewports and having only one result,
230
+ that #qunit-modulefilter-actions fall outside the dropdown rectangle. */
231
+ min-height: 3em;
232
+
233
+ border: 1px solid #AAA;
234
+ border-top-color: transparent;
181
235
  border-radius: 0 0 .25em .25em;
182
236
  color: #0D3349;
183
237
  background-color: #F5F5F5;
184
238
  z-index: 99;
185
239
  }
186
240
 
187
- #qunit-modulefilter-dropdown a {
188
- color: inherit;
189
- text-decoration: none;
190
- }
191
-
192
- #qunit-modulefilter-dropdown .clickable.checked {
193
- font-weight: bold;
194
- color: #0D3349;
195
- background-color: #E2F0F7;
196
- }
197
-
198
- #qunit-modulefilter-dropdown .clickable:hover {
199
- color: #FFF;
200
- background-color: #0D3349;
201
- }
202
-
203
241
  #qunit-modulefilter-actions {
204
242
  display: block;
205
243
  overflow: auto;
206
-
207
244
  /* align with #qunit-modulefilter-dropdown-list */
208
245
  font: smaller/1.5em sans-serif;
209
246
  }
247
+ @media (min-width: 350px) {
248
+ #qunit-modulefilter-actions {
249
+ position: absolute;
250
+ right: 0;
251
+ }
252
+ }
210
253
 
211
254
  #qunit-modulefilter-dropdown #qunit-modulefilter-actions > * {
212
255
  box-sizing: border-box;
@@ -217,33 +260,33 @@
217
260
 
218
261
  #qunit-modulefilter-dropdown #qunit-modulefilter-actions > button {
219
262
  float: right;
220
- font: inherit;
221
- }
222
-
223
- #qunit-modulefilter-dropdown #qunit-modulefilter-actions > :last-child {
224
- /* insert padding to align with checkbox margins */
225
- padding-left: 3px;
263
+ margin: 0.25em;
226
264
  }
227
265
 
228
266
  #qunit-modulefilter-dropdown-list {
229
- max-height: 200px;
230
- overflow-y: auto;
231
267
  margin: 0;
232
- border-top: 2px groove threedhighlight;
233
- padding: 0.4em 0 0;
268
+ padding: 0;
234
269
  font: smaller/1.5em sans-serif;
235
270
  }
236
271
 
237
272
  #qunit-modulefilter-dropdown-list li {
273
+ list-style: none;
274
+ }
275
+ #qunit-modulefilter-dropdown-list .clickable {
276
+ display: block;
277
+ padding: 0.25em 0.50em 0.25em 0.15em;
238
278
  white-space: nowrap;
239
279
  overflow: hidden;
240
280
  text-overflow: ellipsis;
241
281
  }
242
-
243
- #qunit-modulefilter-dropdown-list .clickable {
244
- display: block;
245
- padding-left: 0.15em;
246
- padding-right: 0.5em;
282
+ #qunit-modulefilter-dropdown-list .clickable.checked {
283
+ font-weight: bold;
284
+ background-color: #E2F0F7;
285
+ color: #0D3349;
286
+ }
287
+ #qunit-modulefilter-dropdown .clickable:hover {
288
+ background-color: #FFF;
289
+ color: #444;
247
290
  }
248
291
 
249
292