未验证 提交 a4778eaf 编写于 作者: G gaaclarke 提交者: GitHub

Removed unnecessary call to find the App.framework. (#10178)

上级 2dc03ab5
......@@ -6,15 +6,6 @@
#import <XCTest/XCTest.h>
#import "AppDelegate.h"
static NSBundle* FindTestBundle() {
for (NSBundle* bundle in [NSBundle allBundles]) {
if ([bundle.bundlePath containsString:@".xctext"]) {
return bundle;
}
}
return nil;
}
@interface FlutterViewControllerTest : XCTestCase
@property(nonatomic, strong) FlutterViewController* flutterViewController;
@end
......@@ -27,16 +18,14 @@ static NSBundle* FindTestBundle() {
}
- (void)tearDown {
[super tearDown];
if (self.flutterViewController) {
[self.flutterViewController removeFromParentViewController];
}
[super tearDown];
}
- (void)testFirstFrameCallback {
NSBundle* bundle = FindTestBundle();
FlutterDartProject* project = [[FlutterDartProject alloc] initWithPrecompiledDartBundle:bundle];
FlutterEngine* engine = [[FlutterEngine alloc] initWithName:@"test" project:project];
FlutterEngine* engine = [[FlutterEngine alloc] initWithName:@"test" project:nil];
[engine runWithEntrypoint:nil];
self.flutterViewController = [[FlutterViewController alloc] initWithEngine:engine
nibName:nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册