20 self = [super init];
21 if (self) {
22
24 static dispatch_once_t onceToken;
25 dispatch_once(&onceToken, ^{
27 @"--platform-view" : @"platform_view",
28 @"--platform-view-multiple" : @"platform_view_multiple",
29 @"--platform-view-multiple-background-foreground" :
30 @"platform_view_multiple_background_foreground",
31 @"--platform-view-cliprect" : @"platform_view_cliprect",
32 @"--platform-view-cliprrect" : @"platform_view_cliprrect",
33 @"--platform-view-large-cliprrect" : @"platform_view_large_cliprrect",
34 @"--platform-view-clippath" : @"platform_view_clippath",
35 @"--platform-view-cliprrect-with-transform" : @"platform_view_cliprrect_with_transform",
36 @"--platform-view-large-cliprrect-with-transform" :
37 @"platform_view_large_cliprrect_with_transform",
38 @"--platform-view-cliprect-with-transform" : @"platform_view_cliprect_with_transform",
39 @"--platform-view-clippath-with-transform" : @"platform_view_clippath_with_transform",
40 @"--platform-view-transform" : @"platform_view_transform",
41 @"--platform-view-opacity" : @"platform_view_opacity",
42 @"--platform-view-with-other-backdrop-filter" : @"platform_view_with_other_backdrop_filter",
43 @"--two-platform-views-with-other-backdrop-filter" :
44 @"two_platform_views_with_other_backdrop_filter",
45 @"--platform-view-with-negative-backdrop-filter" :
46 @"platform_view_with_negative_backdrop_filter",
47 @"--platform-view-rotate" : @"platform_view_rotate",
48 @"--non-full-screen-flutter-view-platform-view" :
49 @"non_full_screen_flutter_view_platform_view",
50 @"--bogus-font-text" : @"bogus_font_text",
51 @"--spawn-engine-works" : @"spawn_engine_works",
52 @"--platform-view-cliprect-after-moved" : @"platform_view_cliprect_after_moved",
53 @"--two-platform-view-clip-rect" : @"two_platform_view_clip_rect",
54 @"--two-platform-view-clip-rrect" : @"two_platform_view_clip_rrect",
55 @"--two-platform-view-clip-path" : @"two_platform_view_clip_path",
56 @"--app-extension" : @"app_extension",
57 @"--darwin-system-font" : @"darwin_system_font",
58 };
59 });
61
63 NSNumber* enableImpeller = [[NSBundle bundleWithIdentifier:@"dev.flutter.ScenariosUITests"]
64 objectForInfoDictionaryKey:@"FLTEnableImpeller"];
65 if (enableImpeller != nil) {
66 impeller = enableImpeller.boolValue ?
@"impeller_" :
@"";
67 } else {
68 NSLog(@"FLTEnableImpeller was nil");
69 }
71
72 NSString*
prefix = [NSString stringWithFormat:@"golden_%@_%@", _identifier, impeller];
73 _goldenImage = [[
GoldenImage alloc] initWithGoldenNamePrefix:prefix];
75 }
76 return self;
77}
NSDictionary * launchArgsMap