disabled ios 13.4+ tests on earlier devices (flutter/engine#30887)

This commit is contained in:
gaaclarke 2022-01-14 15:27:43 -08:00 committed by GitHub
parent add928b2db
commit 7723377a79
3 changed files with 17 additions and 1 deletions

View File

@ -29,7 +29,12 @@ API_AVAILABLE(ios(13.4))
@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);
}

View File

@ -106,6 +106,11 @@ typedef void (^ResponseCallback)(bool handled);
@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 {

View File

@ -74,6 +74,12 @@ typedef BOOL (^BoolGetter)();
@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]);
}