vision: ignore web annotation in test unless we expect it
Web detection is flaky. Don't test the presence of a web annotation
unless the test explicitly expects it.
@@ -89,9 +89,11 @@ func TestAnnotate(t *testing.T) {
if got, want := (anns.ImageProps != nil), true; got != want {
t.Errorf("%s: image properties %s, want %s", test.path, p[got], p[want])
}
+ if test.web {
if got, want := (anns.Web != nil), true; got != want {
t.Errorf("%s: web %s, want %s", test.path, p[got], p[want])
}
+ }
if got, want := (anns.CropHints != nil), true; got != want {
t.Errorf("%s: crop hints %s, want %s", test.path, p[got], p[want])
}
