Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Clean up snapshot test cases - #3091

Merged
Adlai-Holler merged 2 commits into
facebookarchive:masterfrom
nguyenhuy:HNCleanupSnapshots
Feb 27, 2017
Merged

Clean up snapshot test cases#3091
Adlai-Holler merged 2 commits into
facebookarchive:masterfrom
nguyenhuy:HNCleanupSnapshots

Conversation

@nguyenhuy

@nguyenhuy nguyenhuy commented Feb 27, 2017

Copy link
Copy Markdown
Contributor
  • Drop 32bit snapshots
  • Update iOS 9 snapshots and move some others to the correct directory
  • Remove setUp overrides in subclasses of ASLayoutSpecSnapshotTestCase that set recordMode flag. Doing so in multiple places make it difficult to enable/dis
    able the flag for all layout spec test cases. It can always be overridden locally if need
    to.
  • Fix testThatOnDidLoadThrowsIfCalledOnLoadedOffMain of ASDisplayNodeTests
  • Fix BUCK build

ASTestDisplayNode *node = [[ASTestDisplayNode alloc] init];
[node view];
dispatch_semaphore_t sem = dispatch_semaphore_create(0);
[NSThread detachNewThreadWithBlock:^{

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test case was failing on iOS 9 because detachNewThreadWithBlock is available since iOS 10.

- Drop 32bit snapshots
- Update iOS 9 snapshots and move some others to the correct directory
- Remove `setUp` overrides in subclasses of `ASLayoutSpecSnapshotTestCase` that set `recordMode` flag. Doing so in multiple places make it difficult to enable/dis
able the flag for all layout spec test cases. It can always be overridden locally if need
to.
- Fix BUCK build

@Adlai-Holler Adlai-Holler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better! Thanks for fixing my bungled BUCK work 😅

@Adlai-Holler
Adlai-Holler merged commit 421a896 into facebookarchive:master Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants