This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Add iOS version to scenario golden images #30263
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
140 changes: 65 additions & 75 deletions
140
testing/scenario_app/ios/Scenarios/Scenarios.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
testing/scenario_app/ios/Scenarios/ScenariosUITests/SpawnEngineTest.h
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,37 +2,26 @@ | |
| // Use of this source code is governed by a BSD-style license that can be | ||
| // found in the LICENSE file. | ||
|
|
||
| #import "SpawnEngineTest.h" | ||
| #import "GoldenImage.h" | ||
| #import "GoldenPlatformViewTests.h" | ||
|
|
||
| @interface SpawnEngineTest : XCTestCase | ||
| @end | ||
|
|
||
| @implementation SpawnEngineTest | ||
|
|
||
| - (void)setUp { | ||
| [super setUp]; | ||
| - (void)testSpawnEngineWorks { | ||
| self.continueAfterFailure = NO; | ||
|
|
||
| self.application = [[XCUIApplication alloc] init]; | ||
| self.application.launchArguments = @[ @"--spawn-engine-works", @"--enable-software-rendering" ]; | ||
| [self.application launch]; | ||
| } | ||
| XCUIApplication* application = [[XCUIApplication alloc] init]; | ||
| application.launchArguments = @[ @"--spawn-engine-works", @"--enable-software-rendering" ]; | ||
| [application launch]; | ||
|
|
||
| - (void)testSpawnEngineWorks { | ||
| NSString* prefix = @"golden_spawn_engine_works_"; | ||
| GoldenImage* golden = [[GoldenImage alloc] initWithGoldenNamePrefix:prefix]; | ||
| if (!golden.image) { | ||
| XCTFail(@"unable to find golden image for: %@", prefix); | ||
| } | ||
| XCUIScreenshot* screenshot = [[XCUIScreen mainScreen] screenshot]; | ||
| if (![golden compareGoldenToImage:screenshot.image]) { | ||
| XCTAttachment* screenshotAttachment = [XCTAttachment attachmentWithImage:screenshot.image]; | ||
| screenshotAttachment.name = [golden.goldenName stringByAppendingString:@"_actual"]; | ||
| screenshotAttachment.lifetime = XCTAttachmentLifetimeKeepAlways; | ||
| [self addAttachment:screenshotAttachment]; | ||
|
|
||
| XCTFail(@"Goldens do not match. Follow the steps in the " | ||
| @"README to update golden named %@ if needed.", | ||
| golden.goldenName); | ||
| } | ||
| XCUIElement* addTextField = application.textFields[@"ready"]; | ||
| XCTAssertTrue([addTextField waitForExistenceWithTimeout:30]); | ||
|
|
||
| GoldenTestManager* manager = | ||
| [[GoldenTestManager alloc] initWithLaunchArg:@"--spawn-engine-works"]; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make this test use |
||
| [manager checkGoldenForTest:self]; | ||
| } | ||
|
|
||
| @end | ||
File renamed without changes
File renamed without changes
Binary file removed
BIN
-80.9 KB
...ing/scenario_app/ios/Scenarios/ScenariosUITests/golden_platform_view_D211AP.png
Binary file not shown.
Binary file removed
BIN
-80.9 KB
testing/scenario_app/ios/Scenarios/ScenariosUITests/golden_platform_view_D21AP.png
Binary file not shown.
Binary file removed
BIN
-96.4 KB
...ing/scenario_app/ios/Scenarios/ScenariosUITests/golden_platform_view_D321AP.png
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed
BIN
-31.8 KB
...sts/golden_platform_view_multiple_background_foreground_iPhone SE_simulator.png
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed
BIN
-26.7 KB
.../Scenarios/ScenariosUITests/golden_platform_view_rotate_iPhone SE_simulator.png
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -192,7 +192,7 @@ - (void)testPointerHover { | |
| XCTAssertNotEqual(lastHoverSequenceNumber, -1, | ||
| @"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]; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix a warning. |
||
| XCTAssertTrue([app.textFields[removeMessage] waitForExistenceWithTimeout:1], | ||
| @"PointerChange.remove event did not occur for a hover"); | ||
| } | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 the main change--
golden_bogus_font_text_iPhone 8_13.0_simulator.pngandgolden_bogus_font_text_iPhone 8_15.0_simulator.pngcan both be checked in.