aboutsummaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
authorShawn Smith <shawnpsmith@gmail.com>2018-02-20 20:50:20 +0000
committerAndrew Bonventre <andybons@golang.org>2018-02-20 21:02:58 +0000
commitd3beea8c529a20b9eebb5ff8c22684af5ee1c920 (patch)
tree46166e3349158a32c50bcd9d11176d36d2ed2cb8 /src/html
parentec62ee7f6d3839fe69aeae538dadc1c9dc3bf020 (diff)
downloadgo-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.go18
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, &lt;Cincinatti&gt;!",
+ "Hello, &lt;Cincinnati&gt;!",
},
{
"else",
@@ -71,17 +71,17 @@ func TestEscape(t *testing.T) {
{
"overescaping1",
"Hello, {{.C | html}}!",
- "Hello, &lt;Cincinatti&gt;!",
+ "Hello, &lt;Cincinnati&gt;!",
},
{
"overescaping2",
"Hello, {{html .C}}!",
- "Hello, &lt;Cincinatti&gt;!",
+ "Hello, &lt;Cincinnati&gt;!",
},
{
"overescaping3",
"{{with .C}}{{$msg := .}}Hello, {{$msg}}!{{end}}",
- "Hello, &lt;Cincinatti&gt;!",
+ "Hello, &lt;Cincinnati&gt;!",
},
{
"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(&#34;%3CCincinatti%3E&#34;)'>`,
+ `<button onclick='alert(&#34;%3CCincinnati%3E&#34;)'>`,
},
{
"jsRe",
@@ -405,7 +405,7 @@ func TestEscape(t *testing.T) {
{
"HTML comment",
"<b>Hello, <!-- name of world -->{{.C}}</b>",
- "<b>Hello, &lt;Cincinatti&gt;</b>",
+ "<b>Hello, &lt;Cincinnati&gt;</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, &lt;Cincinatti&gt;</b>",
+ "<b>Hello, &lt;Cincinnati&gt;</b>",
},
{
"JS line comment",