diff --git a/src/pkg/exp/template/html/escape_test.go b/src/pkg/exp/template/html/escape_test.go
index ee36da22577..6bab5078740 100644
--- a/src/pkg/exp/template/html/escape_test.go
+++ b/src/pkg/exp/template/html/escape_test.go
@@ -292,6 +292,18 @@ func TestEscapeText(t *testing.T) {
``,
+ context{state: stateText},
+ },
+ {
+ ``,
+ context{state: stateText},
+ },
{
`