Macos re-enable TestSetMenu (flutter/engine#37058)

This commit is contained in:
Chris Yang
2022-10-27 10:36:02 -07:00
committed by GitHub
parent 57740dc136
commit e836095f9b

View File

@@ -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