Skip to content

Commit

Permalink
disabled ios 13.4+ tests on earlier devices (flutter#30887)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaaclarke authored Jan 14, 2022
1 parent 1fe982f commit 7042249
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ @interface FlutterChannelKeyResponderTest : XCTestCase

@implementation FlutterChannelKeyResponderTest

- (void)setUp API_AVAILABLE(ios(13.4)) {
- (void)setUp {
// All of these tests were designed to run on iOS 13.4 or later.
if (@available(iOS 13.4, *)) {
} else {
XCTSkip(@"Required API not present for test.");
}
_testKeyDownEvent = keyDownEvent(keyACode, 0x0, 0.0f, "a", "a");
_testKeyUpEvent = keyUpEvent(keyACode, 0x0, 0.0f);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ @interface FlutterEmbedderKeyResponderTest : XCTestCase
@implementation FlutterEmbedderKeyResponderTest

- (void)setUp {
// All of these tests were designed to run on iOS 13.4 or later.
if (@available(iOS 13.4, *)) {
} else {
XCTSkip(@"Required API not present for test.");
}
}

- (void)tearDown {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ - (FlutterViewController*)mockOwnerWithPressesBeginOnlyNext API_AVAILABLE(ios(13
@implementation FlutterKeyboardManagerTest

- (void)setUp {
// All of these tests were designed to run on iOS 13.4 or later.
if (@available(iOS 13.4, *)) {
} else {
XCTSkip(@"Required API not present for test.");
}

[super setUp];
self.mockEngine = OCMClassMock([FlutterEngine class]);
}
Expand Down

0 comments on commit 7042249

Please sign in to comment.