package slidestest import ( "os" "path/filepath" "regexp" "strings" "testing" "amadan.net/rastrillo/fiesta/check/spacing" ) // vendoredSheets are the stylesheets under static/ that are somebody // else's to space: rastrillo's (tokens.css, shell.css; rastrillo // doctor), estilo's (theme.css and busy.css by scripts/writeestilo, // brand/brand.css by estilo's brand/distribute.py). make spacing skips // the same list. var vendoredSheets = map[string]bool{ "tokens.css": true, "shell.css": true, "theme.css": true, "busy.css": true, "brand/brand.css": true, } // styleBlock is one `) // TestEveryStylesheetIsOnTheSpacingScale: Fiesta's spacing check (Paul, // 2026-11-22, "no ad-hoc spacing") over everything Slides styles its // pages with. make spacing runs `go tool fiesta spacing` over static/, // which does not read the \n

hi

{{end}}\n" found := spacing.CheckFiles(map[string][]byte{"x.html": []byte(styleSheets(src))}) if len(found) != 1 || found[0].Line != 4 || found[0].Property != "margin" { t.Fatalf("a 7px margin on line 4 of a template's