From 85368292a3fef14303cffb9f422fd723f44a7cd6 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Thu, 13 Oct 2011 11:53:15 +1100 Subject: [PATCH] html: when a parse test fails, don't bother testing rendering. R=andybalholm CC=golang-dev https://golang.org/cl/5248061 --- src/pkg/html/parse_test.go | 2 ++ 1 file changed, 2 insertions(+) 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 } } } -- 2.50.0