1
0
forked from rosa/hakurei

17 Commits

Author SHA1 Message Date
Kat
c7296d41e5 TODO: docs maybe?? 2026-03-22 11:33:19 +11:00
Kat
6094bd1819 TODO: consider dom sandbox for testing ui (see long desc)
see https://discord.com/channels/1388415325036609617/1458088018232479824/1484195713347879012
2026-03-22 11:33:19 +11:00
Kat
5c7ca7f320 TODO: target-specific tests 2026-03-22 11:33:19 +11:00
Kat
82edd7d939 TODO: actually write tests lol 2026-03-22 11:33:19 +11:00
Kat
51cedb8362 TODO: relocate test code 2026-03-22 11:33:19 +11:00
Kat
68cb328348 TODO: parallel execution 2026-03-22 11:33:19 +11:00
Kat
7404e9b1a4 TODO: implement skipping from run() (use substring-matching for entering tests to skip) 2026-03-22 11:33:19 +11:00
Kat
4435b7ae56 cmd/pkgserver: fix dark mode in test web UI 2026-03-22 11:33:19 +11:00
Kat
550fd6f724 cmd/pkgserver: serialize JS enums as ints instead of strings 2026-03-22 10:58:12 +11:00
Kat
cd46234892 cmd/pkgserver: set exit code when running JS tests from CLI 2026-03-22 10:58:12 +11:00
Kat
7697f44d94 cmd/pkgserver: expose verbose StreamReporter flag via CLI 2026-03-22 10:58:12 +11:00
Kat
66c391d2eb cmd/pkgserver: implement skipping JS tests from the DSL 2026-03-22 10:58:12 +11:00
Kat
246641892d cmd/pkgserver: allow non-global JS test suites 2026-03-22 06:04:08 +11:00
Kat
0a647a0fff cmd/pkgserver: serialize raw log list for go test consumption 2026-03-22 06:04:08 +11:00
Kat
30a6c56d05 cmd/pkgserver: add JSON reporter to facilitate go test integration 2026-03-22 06:04:08 +11:00
Kat
e14702492e cmd/pkgserver: fix multi-line JS test output display 2026-03-22 06:04:08 +11:00
Kat
2dbc9e9a11 cmd/pkgserver: implement JS test DSL and runner 2026-03-22 06:04:08 +11:00
2 changed files with 6 additions and 12 deletions

View File

@@ -31,17 +31,11 @@ details.test-node {
} }
&.success > summary::marker { &.success > summary::marker {
/* /*
* WebKit only supports color and font-size properties in ::marker [1], * WebKit only supports color and font-size properties in ::marker, and
* and its ::-webkit-details-marker only supports hiding the marker * its ::-webkit-details-marker doesn't seem to work whatsoever; thus,
* entirely [2], contrary to mdn's example [3]; thus, set a color as * set a color as a fallback: while it may be confusing for colorblind
* a fallback: while it may not be accessible for colorblind * individuals, it's better than no indication of a test's state.
* individuals, it's better than no indication of a test's state for * See: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/::marker#browser_compatibility
* anyone, as that there's no other way to include an indication in the
* marker on WebKit.
*
* [1]: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/::marker#browser_compatibility
* [2]: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/summary#default_style
* [3]: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/summary#changing_the_summarys_icon
*/ */
color: var(--fg); color: var(--fg);
content: url("/static/success-closed.svg"); content: url("/static/success-closed.svg");

View File

@@ -297,7 +297,7 @@ export class DOMReporter implements Reporter {
outer: for (const d of parent.children) { outer: for (const d of parent.children) {
for (const s of d.children) { for (const s of d.children) {
if (!(s instanceof HTMLElement)) continue; if (!(s instanceof HTMLElement)) continue;
if (!(s.tagName === "SUMMARY" && s.innerText === node)) continue; if (s.tagName !== "SUMMARY" || s.innerText !== node) continue;
child = d; child = d;
break outer; break outer;
} }