Skip to content

Commit

Permalink
[ButtonBar] Fix use of wrong enum values (using FloatingBar rather th…
Browse files Browse the repository at this point in the history
…an ButtonBar)

PiperOrigin-RevId: 366253794
  • Loading branch information
yarneo authored and material-automation committed Apr 1, 2021
1 parent 4bd9ecc commit 40453fe
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ - (void)testLayoutPositionLeadingWithImagesRTL {

- (void)testLayoutPositionTrailingWithTitlesLTR {
// When
self.buttonBar.layoutPosition = MDCFloatingButtonImageLocationTrailing;
self.buttonBar.layoutPosition = MDCButtonBarLayoutPositionTrailing;
CGSize fitSize = [self.buttonBar sizeThatFits:CGSizeZero];
self.buttonBar.bounds = CGRectMake(0, 0, fitSize.width * 2, fitSize.height);

Expand All @@ -335,7 +335,7 @@ - (void)testLayoutPositionTrailingWithImagesLTR {
[self changeItemsToImages];

// When
self.buttonBar.layoutPosition = MDCFloatingButtonImageLocationTrailing;
self.buttonBar.layoutPosition = MDCButtonBarLayoutPositionTrailing;
CGSize fitSize = [self.buttonBar sizeThatFits:CGSizeZero];
self.buttonBar.bounds = CGRectMake(0, 0, fitSize.width * 2, fitSize.height);

Expand All @@ -345,7 +345,7 @@ - (void)testLayoutPositionTrailingWithImagesLTR {

- (void)testLayoutPositionTrailingWithTitlesRTL {
// When
self.buttonBar.layoutPosition = MDCFloatingButtonImageLocationTrailing;
self.buttonBar.layoutPosition = MDCButtonBarLayoutPositionTrailing;
[self changeToRTLAndArabic];
CGSize fitSize = [self.buttonBar sizeThatFits:CGSizeZero];
self.buttonBar.bounds = CGRectMake(0, 0, fitSize.width * 2, fitSize.height);
Expand All @@ -359,7 +359,7 @@ - (void)testLayoutPositionTrailingWithImagesRTL {
[self changeItemsToImages];

// When
self.buttonBar.layoutPosition = MDCFloatingButtonImageLocationTrailing;
self.buttonBar.layoutPosition = MDCButtonBarLayoutPositionTrailing;
[self changeToRTLAndArabic];
CGSize fitSize = [self.buttonBar sizeThatFits:CGSizeZero];
self.buttonBar.bounds = CGRectMake(0, 0, fitSize.width * 2, fitSize.height);
Expand Down

0 comments on commit 40453fe

Please sign in to comment.