Macos re-enable TestSetMenu (flutter/engine#37058)
This commit is contained in:
@@ -25,6 +25,11 @@
|
||||
@implementation FlutterMenuPluginTestObjc
|
||||
|
||||
- (bool)testSetMenu {
|
||||
// Workaround to deflake the test.
|
||||
// See: https://github.com/flutter/flutter/issues/104748#issuecomment-1159336728
|
||||
NSView* view = [[NSView alloc] initWithFrame:NSZeroRect];
|
||||
view.wantsLayer = YES;
|
||||
|
||||
// Build a simulation of the default main menu.
|
||||
NSMenu* mainMenu = [[NSMenu alloc] init];
|
||||
NSMenuItem* appNameMenu = [[NSMenuItem alloc] initWithTitle:@"APP_NAME"
|
||||
@@ -175,9 +180,7 @@
|
||||
@end
|
||||
|
||||
namespace flutter::testing {
|
||||
// TODO(gspencergoog): Re-enabled when deflaked
|
||||
// https://github.com/flutter/flutter/issues/106589
|
||||
TEST(FlutterMenuPluginTest, DISABLED_TestSetMenu) {
|
||||
TEST(FlutterMenuPluginTest, TestSetMenu) {
|
||||
ASSERT_TRUE([[FlutterMenuPluginTestObjc alloc] testSetMenu]);
|
||||
}
|
||||
} // namespace flutter::testing
|
||||
|
||||
Reference in New Issue
Block a user