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

This commit is contained in:
gaaclarke
2019-07-26 12:17:22 -07:00
committed by GitHub
parent 24896f9029
commit 5c1f986232

View File

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