|
@@ -98,6 +98,13 @@ public class StackControllerTest extends BaseTest {
|
98
|
98
|
}
|
99
|
99
|
}
|
100
|
100
|
|
|
101
|
+ @Test
|
|
102
|
+ public void constructor_backButtonIsAddedToChild() {
|
|
103
|
+ createStack(Arrays.asList(child1, child2, child3));
|
|
104
|
+ assertThat(child2.options.topBar.buttons.back.visible.get(false)).isTrue();
|
|
105
|
+ assertThat(child3.options.topBar.buttons.back.visible.get(false)).isTrue();
|
|
106
|
+ }
|
|
107
|
+
|
101
|
108
|
@Test
|
102
|
109
|
public void createView_currentChildIsAdded() {
|
103
|
110
|
StackController uut = createStack(Arrays.asList(child1, child2, child3, child4));
|