Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit aa39960

Browse files
committed
++
1 parent 31e4626 commit aa39960

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

impeller/aiks/aiks_unittests.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2926,19 +2926,18 @@ TEST_P(AiksTest, ClearColorOptimizationDoesNotApplyForBackdropFilters) {
29262926
Picture picture = canvas.EndRecordingAsPicture();
29272927

29282928
std::optional<Color> actual_color;
2929+
bool found_subpass = false;
29292930
picture.pass->IterateAllElements([&](EntityPass::Element& element) -> bool {
29302931
if (auto subpass = std::get_if<std::unique_ptr<EntityPass>>(&element)) {
29312932
actual_color = subpass->get()->GetClearColor();
2933+
found_subpass = true;
29322934
}
29332935
// Fail if the first element isn't a subpass.
29342936
return true;
29352937
});
29362938

2937-
ASSERT_TRUE(actual_color.has_value());
2938-
if (!actual_color) {
2939-
return;
2940-
}
2941-
ASSERT_EQ(actual_color.value(), Color::BlackTransparent());
2939+
EXPECT_TRUE(found_subpass);
2940+
EXPECT_FALSE(actual_color.has_value());
29422941
}
29432942

29442943
TEST_P(AiksTest, CollapsedDrawPaintInSubpass) {

0 commit comments

Comments
 (0)