Back to Skia

Tbody

tools/unicode_comparison/html/tbody.html

latest2.9 KB
Original Source

{{ define "formattedText" }}

{{ range $text := .FormattedMissingGraphemes }} {{ .Text }} {{ end }}

{{ range $text := .FormattedExtraGraphemes }} {{ .Text }} {{ end }}

{{ range $text := .FormattedMissingSoftBreaks }} {{ .Text }} {{ end }}

{{ range $text := .FormattedExtraSoftBreaks }} {{ .Text }} {{ end }}

{{ range $text := .FormattedMissingHardBreaks }} {{ .Text }} {{ end }}

{{ range $text := .FormattedExtraHardBreaks }} {{ .Text }} {{ end }}

{{ range $text := .FormattedMissingWords }} {{ .Text }} {{ end }}

{{ range $text := .FormattedExtraWords }} {{ .Text }} {{ end }}

{{ range $text := .FormattedMissingWhitespaces }} {{ .Text }} {{ end }}

{{ range $text := .FormattedExtraWhitespaces }} {{ .Text }} {{ end }}

{{ range $text := .FormattedMissingControls }} {{ .Text }} {{ end }}

{{ range $text := .FormattedExtraControls }} {{ .Text }} {{ end }} {{ end }} {{ define "rows" }} {{ range $child := . }} {{ if $child.IsImplementation }} | {{ if .HasChildren }} +{{ .Name }} | {{/* {{ printf "%.6f" .Delta.Memory }} | {{ printf "%.6f" .Delta.Disk }} | */}} | | {{ .Delta.Performance.Percents }} | {{ .Delta.Graphemes.Divide }} | {{ .Delta.SoftBreaks.Divide }} | {{ .Delta.HardBreaks.Divide }} | {{ .Delta.Whitespaces.Divide }} | {{ .Delta.Words.Divide }} | {{ .Delta.Controls.Divide }} | {{ else }} {{ .Name }} | | | | | | | | | | {{ end }} {{ else if $child.IsFile }} {{ if $child.HasNoDifferences }} {{ else }} | {{ .Name }} | | {{ if .HasNoGraphemes }} {{ .Delta.Graphemes.Divide }} | {{ else }} {{ if .HasMissingGraphemes }} {{ end }} {{ if .HasExtraGraphemes }} {{ end }} | {{ end }} {{ if .HasNoSoftBreaks }} {{ .Delta.SoftBreaks.Divide }} | {{ else }} {{ if .HasMissingSoftBreaks }} {{ end }} {{ if .HasExtraSoftBreaks }} {{ end }} | {{ end }} {{ if .HasNoHardBreaks }} {{ .Delta.HardBreaks.Divide }} | {{ else }} {{ if .HasMissingHardBreaks }} {{ end }} {{ if .HasExtraHardBreaks }} {{ end }} | {{ end }} {{ if .HasNoWhitespaces }} {{ .Delta.Whitespaces.Divide }} | {{ else }} {{ if .HasMissingWhitespaces }} {{ end }} {{ if .HasExtraWhitespaces }} {{ end }} | {{ end }} {{ if .HasNoWords }} {{ .Delta.Words.Divide }} | {{ else }} {{ if .HasMissingWords }} {{ end }} {{ if .HasExtraWords }} {{ end }} | {{ end }} {{ if .HasNoControls }} {{ .Delta.Controls.Divide }} | {{ else }} {{ if .HasMissingControls }} {{ end }} {{ if .HasExtraControls }} {{ end }} | {{ end }} | {{ .Implementation }} results | {{ template "formattedText" . }} | | Chrome results | {{ .Text }} | {{ end }} {{ else }} | {{ if .HasChildren }} + {{ .Name }} | | | {{ .Delta.Performance.Percents }} | {{ .Delta.Graphemes.Divide }} | {{ .Delta.SoftBreaks.Divide }} | {{ .Delta.HardBreaks.Divide }} | {{ .Delta.Whitespaces.Divide }} | {{ .Delta.Words.Divide }} | {{ .Delta.Controls.Divide }} | {{ else }} {{ .Name }} | | | {{ .Delta.Performance.Percents }} | | | | | | | {{ end }} {{ end}} {{ template "rows" $child.Children }} {{ end }} {{ end }}