mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
disabled ios 13.4+ tests on earlier devices (flutter/engine#30887)
This commit is contained in:
parent
add928b2db
commit
7723377a79
@ -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);
|
||||
}
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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]);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user