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

Commit 7a114d8

Browse files
committed
Update FlutterEngineTest.mm
1 parent 4d6ed39 commit 7a114d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shell/platform/darwin/macos/framework/Source/FlutterEngineTest.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,10 @@ - (nonnull NSView*)createWithViewIdentifier:(int64_t)viewId arguments:(nullable
774774
withPriority:NSAccessibilityPriorityMedium])
775775
.andDo((^(NSInvocation* invocation) {
776776
announced = TRUE;
777+
[invocation retainArguments];
778+
NSString* message;
779+
[invocation getArgument:&message atIndex:2];
780+
EXPECT_EQ(message, @"error message");
777781
}));
778782

779783
NSDictionary<NSString*, id>* annotatedEvent =

0 commit comments

Comments
 (0)