stack.getPropertyByTitle("reverseOrder").setValue(true);
// check Sections
int width = stack.getModelBounds().width;
List<SectionStackSectionInfo> sections = stack.getSections();
assertThat(sections.size()).isEqualTo(2);
SectionStackSectionInfo section_1 = sections.get(0);
SectionStackSectionInfo section_2 = sections.get(1);
// check section 1
{
Integer sectionTop =
Expectations.get(200, new IntValue[]{new IntValue("flanker-desktop", 201)});
Integer sectionHeight =
Expectations.get(40, new IntValue[]{new IntValue("flanker-desktop", 39)});
assertThat(section_1.getModelBounds()).isEqualTo(
new Rectangle(0, sectionTop, width, sectionHeight));
List<CanvasInfo> canvases = section_1.getCanvases();
assertThat(canvases.size()).isEqualTo(1);
Integer canvasHeight =
Expectations.get(14, new IntValue[]{new IntValue("flanker-desktop", 13)});
assertThat(canvases.get(0).getModelBounds()).isEqualTo(
new Rectangle(1, -1, width - 2, canvasHeight));
}
// check section 2
{
Integer sectionTop =
Expectations.get(30, new IntValue[]{new IntValue("flanker-desktop", 31)});
assertThat(section_2.getCanvases().size()).isEqualTo(3);
assertThat(section_2.getModelBounds()).isEqualTo(new Rectangle(0, sectionTop, width, 170));
List<CanvasInfo> canvases = section_2.getCanvases();
assertThat(canvases.size()).isEqualTo(3);
assertThat(canvases.get(0).getModelBounds()).isEqualTo(
new Rectangle(85, 121, CanvasTest.BUTTON_WIDTH, CanvasTest.BUTTON_HEIGHT));
assertThat(canvases.get(1).getModelBounds()).isEqualTo(new Rectangle(1, 21, width - 2, 100));
assertThat(canvases.get(2).getModelBounds()).isEqualTo(