isHostScreenshotDiagnostic function

bool isHostScreenshotDiagnostic(
  1. Object? error
)

True when a screenshot diagnostic should never fail the host test.

Implementation

bool isHostScreenshotDiagnostic(Object? error) {
  return classifyScreenshotCaptureFailure(error) ==
      ScreenshotCaptureFailureKind.unpaintedRenderView;
}