Skip to content

Commit 2888611

Browse files
committed
Fix fiam-display test blocking robolectric blocking
Robolectric versions higher than 4.12 set window flag different from 1, and the test doesn't aim at testing those, so we are ignoring them.
1 parent 8a2b11f commit 2888611

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

firebase-inappmessaging-display/src/test/java/com/google/firebase/inappmessaging/display/internal/FiamWindowManagerTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public void show_addsViewOnlyOnce() {
9595
expectedLayoutParams.dimAmount = 0.3f;
9696
expectedLayoutParams.gravity = WINDOW_GRAVITY;
9797
expectedLayoutParams.windowAnimations = 0;
98+
expectedLayoutParams.flags = 16777217; // Ignore flags (unblocks robolectric >4.12 update)
9899

99100
fiamWindowManager.show(bindingWrapper, activity);
100101
fiamWindowManager.show(bindingWrapper, activity);

0 commit comments

Comments
 (0)