]> Cypherpunks repositories - gostls13.git/commit
html/template: add tests from text/template
authorRuss Cox <rsc@golang.org>
Mon, 6 Jul 2020 16:27:01 +0000 (12:27 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 14 Jul 2020 16:54:25 +0000 (16:54 +0000)
commitefbe47b1625422f21bb2f130f916ce040756dbe3
tree4007ee6438314a4bb1fef4a87ec8c2cc0a791b66
parente88ea87e7b886815cfdadc4cd3d70bf5ef833bd7
html/template: add tests from text/template

Copy and adapt tests from text/template, to exercise more of html/template's copy.

Various differences in behavior are flagged with NOTE comments or t.Skip
and documented in #40075. Many of them are probably bugs.
One clarifying test case added to both text/template and html/template.

No changes to the package itself.

Change-Id: Ifefad83d647db846040d24c2741a0244b00ade82
Reviewed-on: https://go-review.googlesource.com/c/go/+/241084
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/html/template/clone_test.go
src/html/template/content_test.go
src/html/template/escape_test.go
src/html/template/exec_test.go [new file with mode: 0644]
src/html/template/multi_test.go [new file with mode: 0644]
src/html/template/testdata/file1.tmpl [new file with mode: 0644]
src/html/template/testdata/file2.tmpl [new file with mode: 0644]
src/html/template/testdata/tmpl1.tmpl [new file with mode: 0644]
src/html/template/testdata/tmpl2.tmpl [new file with mode: 0644]
src/text/template/multi_test.go