oficina / docs Public

Clone
git clone https://amadan.net/oficina/docs

Plain git — no account needed to clone.

Download

Download this file

1//go:build browser
2
3package docs_test
4
5import "testing"
6
7// Every toolbar picker opens to a list a person can use, at 320, 390 and
8// 1280px, in WebKit as well as Chromium: its first five rows on screen,
9// the list inside the viewport and scrolling to its last row
10// (fixtures/engines/pickers.mjs). On a 390px phone Style, Font and Size
11// all opened about 10px tall: the toolbar scrolls sideways there, and
12// ui/select.js took it for the edge of a list fixed and anchored out of
13// it (branch review on #91). At 320px the font list ran 6px off the
14// screen.
15func TestToolbarEnginesEveryPickerOpensUsably(t *testing.T) {
16 if out, err := runEngines(t, "pickers.mjs"); err != nil {
17 t.Fatalf("a toolbar picker does not open to a usable list in every engine: %v\n%s", err, out)
18 }
19}
20