Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[List] Add basic snapshot tests for MDCSelfSizingStereoCell. #7439

Merged

Conversation

wenyuzhang666
Copy link
Contributor

@wenyuzhang666 wenyuzhang666 requested review from andrewoverton and a team as code owners May 22, 2019 03:51
@wenyuzhang666 wenyuzhang666 requested review from galiak11 and removed request for andrewoverton May 22, 2019 03:51
self.cell.leadingImageView.image = [UIImage mdc_testImageOfSize:CGSizeMake(24, 24)
withStyle:MDCSnapshotTestImageStyleCheckerboard];
self.cell.trailingImageView.image = [UIImage mdc_testImageOfSize:CGSizeMake(24, 24)
withStyle:MDCSnapshotTestImageStyleRectangles];

Choose a reason for hiding this comment

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

clang-format suggested the following change:

-  self.cell.leadingImageView.image = [UIImage mdc_testImageOfSize:CGSizeMake(24, 24)
-                                                   withStyle:MDCSnapshotTestImageStyleCheckerboard];
-  self.cell.trailingImageView.image = [UIImage mdc_testImageOfSize:CGSizeMake(24, 24)
-                                                        withStyle:MDCSnapshotTestImageStyleRectangles];
+  self.cell.leadingImageView.image =
+      [UIImage mdc_testImageOfSize:CGSizeMake(24, 24)
+                         withStyle:MDCSnapshotTestImageStyleCheckerboard];
+  self.cell.trailingImageView.image =
+      [UIImage mdc_testImageOfSize:CGSizeMake(24, 24)
+                         withStyle:MDCSnapshotTestImageStyleRectangles];

@material-automation
Copy link

material-automation commented May 22, 2019

bazel detected changes to the following targets:

//components/List:snapshot_tests
//components/List:snapshot_tests_test_bundle

[self snapshotVerifyView:snapshotView];
}

- (void)speedAllLayersOfView:(UIView *)view {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this is no longer used - can it be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching it. Addressed in c9bb6ef.

@wenyuzhang666 wenyuzhang666 merged commit 32d8d4d into material-components:develop May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants