Download this file
| 1 | //go:build browser |
| 2 | |
| 3 | package docs_test |
| 4 | |
| 5 | import "testing" |
| 6 | |
| 7 | // The I2 editor layout in Chromium and WebKit (fixtures/engines/i2.mjs; |
| 8 | // spec 2026-11-11): the 56px stacked header and its 28px controls; the |
| 9 | // inspector at 1280px, the strip at 1000px (open or closed, C3) and the |
| 10 | // phone at 390px; Format toggling in place, remembered in its cookie, |
| 11 | // with the closed inspector's controls out of the tab path (C2); the |
| 12 | // header's undo/redo current through keyboard undo and redo; the sheet |
| 13 | // centred unless the inspector needs the room, at 1800, 1440 and 1280px; |
| 14 | // and no sideways scroll at 320px. |
| 15 | func TestEnginesTheI2Layout(t *testing.T) { |
| 16 | if out, err := runEngines(t, "i2.mjs"); err != nil { |
| 17 | t.Fatalf("the I2 layout failed in an engine: %v\n%s", err, out) |
| 18 | } |
| 19 | } |
| 20 | |