mirror of
https://github.com/golang/go
synced 2024-11-12 10:30:23 -07:00
html/template: fix build after encoding/js escaping change
TBR=rsc R=golang-codereviews CC=golang-codereviews https://golang.org/cl/159590043
This commit is contained in:
parent
0f698be547
commit
e71c9cbe26
@ -138,7 +138,7 @@ func TestJSValEscaper(t *testing.T) {
|
||||
// Newlines.
|
||||
{"\r\n\u2028\u2029", `"\r\n\u2028\u2029"`},
|
||||
// "\v" == "v" on IE 6 so use "\x0b" instead.
|
||||
{"\t\x0b", `"\u0009\u000b"`},
|
||||
{"\t\x0b", `"\t\u000b"`},
|
||||
{struct{ X, Y int }{1, 2}, `{"X":1,"Y":2}`},
|
||||
{[]interface{}{}, "[]"},
|
||||
{[]interface{}{42, "foo", nil}, `[42,"foo",null]`},
|
||||
|
Loading…
Reference in New Issue
Block a user