]> Cypherpunks repositories - gostls13.git/commitdiff
html: when a parse test fails, don't bother testing rendering.
authorNigel Tao <nigeltao@golang.org>
Thu, 13 Oct 2011 00:53:15 +0000 (11:53 +1100)
committerNigel Tao <nigeltao@golang.org>
Thu, 13 Oct 2011 00:53:15 +0000 (11:53 +1100)
R=andybalholm
CC=golang-dev
https://golang.org/cl/5248061

src/pkg/html/parse_test.go

index 5a473694b3ca5cc197eec8eb7512c1dee63c0f89..0c1b9f89372410bbd45597a40c9f41d4f6614cd1 100644 (file)
@@ -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
                        }
                }
        }