mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Add name to the XCTAttachments in the scenario test app (flutter/engine#17355)
This commit is contained in:
parent
3aace8df56
commit
e7798e90f4
@ -49,11 +49,13 @@ static const NSInteger kSecondsToWaitForPlatformView = 30;
|
||||
|
||||
XCUIScreenshot* screenshot = [[XCUIScreen mainScreen] screenshot];
|
||||
XCTAttachment* attachment = [XCTAttachment attachmentWithScreenshot:screenshot];
|
||||
attachment.name = @"new_golden";
|
||||
attachment.lifetime = XCTAttachmentLifetimeKeepAlways;
|
||||
[self addAttachment:attachment];
|
||||
|
||||
if (golden.image) {
|
||||
XCTAttachment* goldenAttachment = [XCTAttachment attachmentWithImage:golden.image];
|
||||
attachment.name = @"current_golden";
|
||||
goldenAttachment.lifetime = XCTAttachmentLifetimeKeepAlways;
|
||||
[self addAttachment:goldenAttachment];
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user