Skip to content

Commit

Permalink
[Tabs] Use templated image in snapshot test. (#7730)
Browse files Browse the repository at this point in the history
Using a templated image in snapshot tests instead of original rendering mode. This makes it easier to test tint color and title color changes.

Follow-up to #7714
  • Loading branch information
Robert Moore committed Jun 27, 2019
1 parent 46c8e51 commit b46aa91
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ - (void)setUp {
// Default to white since in actual use the background would be transparent.
self.itemView.backgroundColor = UIColor.whiteColor;
self.itemView.iconImageView.image =
[UIImage mdc_testImageOfSize:CGSizeMake(24, 24) withStyle:MDCSnapshotTestImageStyleFramedX];
[[UIImage mdc_testImageOfSize:CGSizeMake(24, 24) withStyle:MDCSnapshotTestImageStyleFramedX]
imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
}

- (void)tearDown {
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b46aa91

Please sign in to comment.