]> Cypherpunks repositories - gostls13.git/commitdiff
html/template: fix build after encoding/js escaping change
authorAndrew Gerrand <adg@golang.org>
Mon, 27 Oct 2014 23:18:44 +0000 (10:18 +1100)
committerAndrew Gerrand <adg@golang.org>
Mon, 27 Oct 2014 23:18:44 +0000 (10:18 +1100)
TBR=rsc
R=golang-codereviews
CC=golang-codereviews
https://golang.org/cl/159590043

src/html/template/js_test.go

index 311e1d2c4ea2c1e7736e4a7b45e5c75edc8a2326..7af7997de9b6c3dbf8c7016238370965d910c42b 100644 (file)
@@ -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]`},