Skip to content

Commit 20ea63b

Browse files
committed
Mark the mip-render test skipped instead of returning early
When the backend cannot render into non-zero mip levels, report the test as skipped via markTestSkipped rather than silently passing.
1 parent bc91831 commit 20ea63b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

engine/src/flutter/testing/dart/gpu_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,7 @@ void main() async {
866866
// Rendering into a non-zero mip level needs ES 3.0 or
867867
// GL_OES_fbo_render_mipmap on the GLES backend.
868868
if (!gpu.gpuContext.doesSupportFramebufferRenderMipmap) {
869+
markTestSkipped('Backend does not support rendering into non-zero mip levels.');
869870
return;
870871
}
871872
final gpu.Texture texture = gpu.gpuContext.createTexture(

0 commit comments

Comments
 (0)