diff options
Diffstat (limited to 'libgo/go/html/template/escape_test.go')
-rw-r--r-- | libgo/go/html/template/escape_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/html/template/escape_test.go b/libgo/go/html/template/escape_test.go index 0e31674f05f..70cada3f50b 100644 --- a/libgo/go/html/template/escape_test.go +++ b/libgo/go/html/template/escape_test.go @@ -1471,7 +1471,7 @@ func TestEscapeText(t *testing.T) { for _, test := range tests { b, e := []byte(test.input), newEscaper(nil) - c := e.escapeText(context{}, &parse.TextNode{parse.NodeText, b}) + c := e.escapeText(context{}, &parse.TextNode{NodeType: parse.NodeText, Text: b}) if !test.output.eq(c) { t.Errorf("input %q: want context\n\t%v\ngot\n\t%v", test.input, test.output, c) continue |