From: Nigel Tao Date: Thu, 13 Oct 2011 00:53:15 +0000 (+1100) Subject: html: when a parse test fails, don't bother testing rendering. X-Git-Tag: weekly.2011-10-18~103 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=85368292a3fef14303cffb9f422fd723f44a7cd6;p=gostls13.git html: when a parse test fails, don't bother testing rendering. R=andybalholm CC=golang-dev https://golang.org/cl/5248061 --- diff --git a/src/pkg/html/parse_test.go b/src/pkg/html/parse_test.go index 5a473694b3..0c1b9f8937 100644 --- a/src/pkg/html/parse_test.go +++ b/src/pkg/html/parse_test.go @@ -149,6 +149,7 @@ func TestParser(t *testing.T) { } if want := string(b); got != want { t.Errorf("%s test #%d %q, got vs want:\n----\n%s----\n%s----", filename, i, text, got, want) + continue } // Check that rendering and re-parsing results in an identical tree. pr, pw := io.Pipe() @@ -165,6 +166,7 @@ func TestParser(t *testing.T) { } if got != got1 { t.Errorf("%s test #%d %q, got vs got1:\n----\n%s----\n%s----", filename, i, text, got, got1) + continue } } }