全局美化 v4
This commit is contained in:
@@ -67,8 +67,8 @@ func TestPercentRender(t *testing.T) {
|
||||
}
|
||||
html := buf.String()
|
||||
|
||||
// 2/3 取整 = 66%,1/3 取整 = 33%;进度条宽度同步渲染
|
||||
for _, want := range []string{"(66%)", "(33%)", "width: 66%", "width: 33%", "uk-progressbar"} {
|
||||
// 2/3 取整 = 66%,1/3 取整 = 33%;占比条改用原生 <progress>,值同步渲染
|
||||
for _, want := range []string{"(66%)", "(33%)", `value="66" max="100"`, `value="33" max="100"`, "uk-progress"} {
|
||||
if !bytes.Contains([]byte(html), []byte(want)) {
|
||||
t.Errorf("HTML missing %q", want)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user