diff options
author | Shawn Smith <shawnpsmith@gmail.com> | 2018-02-20 20:50:20 +0000 |
---|---|---|
committer | Andrew Bonventre <andybons@golang.org> | 2018-02-20 21:02:58 +0000 |
commit | d3beea8c529a20b9eebb5ff8c22684af5ee1c920 (patch) | |
tree | 46166e3349158a32c50bcd9d11176d36d2ed2cb8 /src/html | |
parent | ec62ee7f6d3839fe69aeae538dadc1c9dc3bf020 (diff) | |
download | go-d3beea8c529a20b9eebb5ff8c22684af5ee1c920.tar.gz go-d3beea8c529a20b9eebb5ff8c22684af5ee1c920.zip |
all: fix misspellings
GitHub-Last-Rev: 468df242d07419c228656985702325aa78952d99
GitHub-Pull-Request: golang/go#23935
Change-Id: If751ce3ffa3a4d5e00a3138211383d12cb6b23fc
Reviewed-on: https://go-review.googlesource.com/95577
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/template/escape_test.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/html/template/escape_test.go b/src/html/template/escape_test.go index 55f808ccba..dd4c53a80d 100644 --- a/src/html/template/escape_test.go +++ b/src/html/template/escape_test.go @@ -40,7 +40,7 @@ func TestEscape(t *testing.T) { }{ F: false, T: true, - C: "<Cincinatti>", + C: "<Cincinnati>", G: "<Goodbye>", H: "<Hello>", A: []string{"<a>", "<b>"}, @@ -61,7 +61,7 @@ func TestEscape(t *testing.T) { { "if", "{{if .T}}Hello{{end}}, {{.C}}!", - "Hello, <Cincinatti>!", + "Hello, <Cincinnati>!", }, { "else", @@ -71,17 +71,17 @@ func TestEscape(t *testing.T) { { "overescaping1", "Hello, {{.C | html}}!", - "Hello, <Cincinatti>!", + "Hello, <Cincinnati>!", }, { "overescaping2", "Hello, {{html .C}}!", - "Hello, <Cincinatti>!", + "Hello, <Cincinnati>!", }, { "overescaping3", "{{with .C}}{{$msg := .}}Hello, {{$msg}}!{{end}}", - "Hello, <Cincinatti>!", + "Hello, <Cincinnati>!", }, { "assignment", @@ -181,7 +181,7 @@ func TestEscape(t *testing.T) { { "urlBranchConflictMoot", `<a href="{{if .T}}/foo?a={{else}}/bar#{{end}}{{.C}}">`, - `<a href="/foo?a=%3cCincinatti%3e">`, + `<a href="/foo?a=%3cCincinnati%3e">`, }, { "jsStrValue", @@ -237,7 +237,7 @@ func TestEscape(t *testing.T) { "jsStrNotUnderEscaped", "<button onclick='alert({{.C | urlquery}})'>", // URL escaped, then quoted for JS. - `<button onclick='alert("%3CCincinatti%3E")'>`, + `<button onclick='alert("%3CCincinnati%3E")'>`, }, { "jsRe", @@ -405,7 +405,7 @@ func TestEscape(t *testing.T) { { "HTML comment", "<b>Hello, <!-- name of world -->{{.C}}</b>", - "<b>Hello, <Cincinatti></b>", + "<b>Hello, <Cincinnati></b>", }, { "HTML comment not first < in text node.", @@ -445,7 +445,7 @@ func TestEscape(t *testing.T) { { "Split HTML comment", "<b>Hello, <!-- name of {{if .T}}city -->{{.C}}{{else}}world -->{{.W}}{{end}}</b>", - "<b>Hello, <Cincinatti></b>", + "<b>Hello, <Cincinnati></b>", }, { "JS line comment", |