Bug fixes for chalkboard updates.

This commit is contained in:
Storm Dragon
2026-06-23 01:03:49 -04:00
parent e73eb21c45
commit 8ff316101e
3 changed files with 17 additions and 2 deletions
@@ -2,7 +2,7 @@
# shellcheck shell=bash disable=SC2034,SC2154 # shellcheck shell=bash disable=SC2034,SC2154
pkgname=skald-git pkgname=skald-git
pkgver=0.0.0.r1541.gd8817f6 pkgver=0.0.0.r1542.ge73eb21
pkgrel=1 pkgrel=1
pkgdesc='Audio-only hall-based conferencing server' pkgdesc='Audio-only hall-based conferencing server'
arch=('x86_64' 'aarch64') arch=('x86_64' 'aarch64')
+1 -1
View File
@@ -78,7 +78,7 @@
</div> </div>
<div id="chalkboard-area"> <div id="chalkboard-area">
<h2 id="chalkboard-heading">Virtual chalkboard</h2> <h2 id="chalkboard-heading">Virtual chalkboard</h2>
<textarea id="chalkboard" aria-labelledby="chalkboard-heading"></textarea> <textarea id="chalkboard" aria-labelledby="chalkboard-heading" hidden></textarea>
<pre id="chalkboard-view" tabindex="0" role="region" aria-labelledby="chalkboard-heading" hidden></pre> <pre id="chalkboard-view" tabindex="0" role="region" aria-labelledby="chalkboard-heading" hidden></pre>
<button id="chalkboard-copy" type="button" class="btn btn-default" disabled>Copy to clipboard</button> <button id="chalkboard-copy" type="button" class="btn btn-default" disabled>Copy to clipboard</button>
</div> </div>
+15
View File
@@ -73,6 +73,21 @@ func TestHallHeadingIncludesCurrentStatus(t *testing.T) {
requireFunctionContains(t, js, "gotUserMessage", "hallRecording = false") requireFunctionContains(t, js, "gotUserMessage", "hallRecording = false")
} }
func TestChalkboardReadOnlyViewIsNotAnEditBox(t *testing.T) {
html := readStaticFile(t, "skald.html")
css := readStaticFile(t, "skald.css")
js := readStaticFile(t, "skald.js")
requireContains(t, html, `<textarea id="chalkboard" aria-labelledby="chalkboard-heading" hidden>`, "chalkboard editor")
requireContains(t, html, `<pre id="chalkboard-view" tabindex="0" role="region" aria-labelledby="chalkboard-heading" hidden>`, "chalkboard view")
requireContains(t, css, "white-space: pre-wrap", "chalkboard view")
requireContains(t, css, "#chalkboard[hidden]", "chalkboard hidden state")
requireFunctionContains(t, js, "setChalkboardText", "view.textContent = text")
requireFunctionContains(t, js, "updateChalkboardAccess", "editor.hidden = !canEdit")
requireFunctionContains(t, js, "updateChalkboardAccess", "view.hidden = canEdit")
requireFunctionContains(t, js, "applyChalkboardUpdate", "setChalkboardText(text)")
}
func TestGlobalShortcutAliasesStayDocumented(t *testing.T) { func TestGlobalShortcutAliasesStayDocumented(t *testing.T) {
js := readStaticFile(t, "skald.js") js := readStaticFile(t, "skald.js")