-
Notifications
You must be signed in to change notification settings - Fork 6k
Run iOS scenario apps on iPhone 11 and iOS 14 #30104
Conversation
| CGImageRef imageRefA = [self.image CGImage]; | ||
| CGImageRef imageRefB = [image CGImage]; | ||
|
|
||
| // The home bar at the bottom of the screen can be different shades of gray |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was hoping to use prefersHomeIndicatorAutoHidden similar to
| - (BOOL)prefersStatusBarHidden { |
But that makes it worse, the home indicator bar animates in and then animates out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ok to me.
Side node:
Is it possible to wait for the home indicator to be hidden with a XCTestExpectation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to wait for the home indicator to be hidden with a
XCTestExpectation?
Good idea! I checked springboard and there's a "Home Grabber" element.
| @"PointerChange.hover event did not occur for a hover"); | ||
| NSString* removeMessage = [NSString | ||
| stringWithFormat:@"%d,PointerChange.remove,device=0,buttons=0", lastHoverSequenceNumber + 1]; | ||
| stringWithFormat:@"%ld,PointerChange.remove,device=0,buttons=0", lastHoverSequenceNumber + 1]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix a warning.
cyanglaz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| CGImageRef imageRefA = [self.image CGImage]; | ||
| CGImageRef imageRefB = [image CGImage]; | ||
|
|
||
| // The home bar at the bottom of the screen can be different shades of gray |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ok to me.
Side node:
Is it possible to wait for the home indicator to be hidden with a XCTestExpectation?
6d75e3e to
5a95b4e
Compare
| XCUIElement* addTextField = application.textFields[@"ready"]; | ||
| XCTAssertTrue([addTextField waitForExistenceWithTimeout:30]); | ||
|
|
||
| GoldenTestManager* manager = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this test use GoldenTestManager so it isn't doing one-off screenshots.
|
Grr, it failed and we don't upload the failing xc results bundle |
I'm not sure how to diagnose this in LUCI. I'm going to revert to the unfortunate pixel cropping check, and revisit this change after upgrading to Xcode 13 on the bots. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM when CI passes
|
|
||
| // Sometimes even when the home bar indicator element no longer exists | ||
| // there's still a phantom animation. Wait another second to let it finish animating. | ||
| XCTWaiterResult waitResult = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The animation in question is in springboard, not in our app.
* 9b74c21 Run iOS scenario apps on iPhone 11 and iOS 14 (flutter/engine#30104) * 4108898 Add error handler for os.rmtree calls (flutter/engine#30169) * 55c5e56 Don't run curl in verbose mode when --verbose set (flutter/engine#30170) * a1fe531 Win32: Implement DispatchAccessibilityAction (flutter/engine#30187) * a7a8024 Update buildroot to db6d037 (ToT). (flutter/engine#30171) * 7ccf290 Revert "Run iOS scenario apps on iPhone 11 and iOS 14 (#30104)" (flutter/engine#30193) * 1313e73 Add unconditional waits on fml::Semaphore. (flutter/engine#30165) * 094ff9e Roll Fuchsia Mac SDK from EAlr46NQ8... to zMg5gNi2E... (flutter/engine#30190) * a572ab5 Roll Fuchsia Linux SDK from WGMjaVH60... to s03VQc7lX... (flutter/engine#30191) * 07c6f41 Roll Skia from f333f5614a9b to 06f3d68627c2 (24 revisions) (flutter/engine#30192) * 8796f0f Update Swiftshader to dc0f131930 (flutter/engine#30188) * c1e235d Add length guard to fix Windows build with VS2019 16.11.7 headers (flutter/engine#30189) * 7831529 Roll Skia from 06f3d68627c2 to 1c4cf27965bd (2 revisions) (flutter/engine#30194) * 5672f9e Document rationale for Dart VM flag prefix match (flutter/engine#30195) * 1c10e68 Roll buildroot to 430b57c. (flutter/engine#30197) * e32d04a Roll Skia from 1c4cf27965bd to 543b8681c7f2 (1 revision) (flutter/engine#30198) * 6981c04 [ios platform view] fix overlay zPosition (flutter/engine#29930) * efaccf0 renew cirrus key (flutter/engine#30186) * 9b80c08 Roll Skia from 543b8681c7f2 to 00edeefab7f4 (1 revision) (flutter/engine#30200) * 164045d Roll Fuchsia Mac SDK from zMg5gNi2E... to QeaP059wu... (flutter/engine#30203) * 83b84d3 Roll Skia from 00edeefab7f4 to 21b8ccb7393c (3 revisions) (flutter/engine#30206)
To facilitate upgrading to Xcode 13, run the tests on an iPhone 11 simulator, which is available on both Xcode 12 and 13.
Succeeded: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8828886065297463201/+/u/test:_Scenario_App_Integration_Tests/stdout
Part of flutter/flutter#85555.
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.