1
0
forked from rosa/hakurei

17 Commits

Author SHA1 Message Date
Kat
dbdde39e9a TODO: docs maybe?? 2026-03-23 00:34:17 +11:00
Kat
6c47307aab TODO: consider dom sandbox for testing ui (see long desc)
see https://discord.com/channels/1388415325036609617/1458088018232479824/1484195713347879012
2026-03-23 00:34:17 +11:00
Kat
a4f801ed4c TODO: target-specific tests 2026-03-23 00:34:17 +11:00
Kat
4333a0d1f6 TODO: actually write tests lol 2026-03-23 00:34:17 +11:00
Kat
99d9f37684 TODO: relocate test code 2026-03-23 00:34:17 +11:00
Kat
935e11cae6 TODO: parallel execution 2026-03-23 00:34:17 +11:00
Kat
9193dbf18d TODO: implement skipping from run() (use substring-matching for entering tests to skip) 2026-03-23 00:34:17 +11:00
Kat
b5cad5b3f5 cmd/pkgserver: fix dark mode in test web UI 2026-03-23 00:34:17 +11:00
Kat
a2838c0315 cmd/pkgserver: serialize JS enums as ints instead of strings 2026-03-23 00:34:17 +11:00
Kat
18b1bad8b9 cmd/pkgserver: set exit code when running JS tests from CLI 2026-03-23 00:34:17 +11:00
Kat
63296ec6e9 cmd/pkgserver: expose verbose StreamReporter flag via CLI 2026-03-23 00:34:17 +11:00
Kat
2073e17b95 cmd/pkgserver: implement skipping JS tests from the DSL 2026-03-23 00:34:17 +11:00
Kat
e8e1fcf956 cmd/pkgserver: allow non-global JS test suites 2026-03-23 00:34:17 +11:00
Kat
a450f1e887 cmd/pkgserver: serialize raw log list for go test consumption 2026-03-23 00:34:17 +11:00
Kat
91a8bc4682 cmd/pkgserver: add JSON reporter to facilitate go test integration 2026-03-23 00:34:17 +11:00
Kat
a2ef5d4ccb cmd/pkgserver: fix multi-line JS test output display 2026-03-23 00:34:17 +11:00
Kat
c0c45eea3a cmd/pkgserver: implement JS test DSL and runner 2026-03-23 00:34:17 +11:00
2 changed files with 12 additions and 6 deletions

View File

@@ -31,11 +31,17 @@ details.test-node {
} }
&.success > summary::marker { &.success > summary::marker {
/* /*
* WebKit only supports color and font-size properties in ::marker, and * WebKit only supports color and font-size properties in ::marker [1],
* its ::-webkit-details-marker doesn't seem to work whatsoever; thus, * and its ::-webkit-details-marker only supports hiding the marker
* set a color as a fallback: while it may be confusing for colorblind * entirely [2], contrary to mdn's example [3]; thus, set a color as
* individuals, it's better than no indication of a test's state. * a fallback: while it may not be accessible for colorblind
* See: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/::marker#browser_compatibility * individuals, it's better than no indication of a test's state for
* 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;
} }