Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions tests/cases/gui/labkit/launcher/LauncherGuiTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ function assertLauncherTextAreasHaveRoom(fig)
pause(0.5);
drawnow;
ui = getappdata(fig, 'labkitUiRegistry');
assert(ui.controls.selectedDetails.textArea.Position(4) >= 105, ...
'Selected App details should have enough default height for multiple lines.');
assert(ui.controls.statusLine.textArea.Position(4) >= 80, ...
'Launcher action status should have enough default height for long messages.');
selectedHeight = ui.controls.selectedDetails.textArea.Position(4);
statusHeight = ui.controls.statusLine.textArea.Position(4);
assert(selectedHeight >= 90, ...
'Selected App details should have enough default height for multiple lines; found %.0f px.', ...
selectedHeight);
assert(statusHeight >= 75, ...
'Launcher action status should have enough default height for long messages; found %.0f px.', ...
statusHeight);
end

function assertNoPanelTitle(fig, blockedTitles)
Expand Down
18 changes: 12 additions & 6 deletions tests/cases/gui/labkit/ui/GuiLayoutUiDeclarativeAppTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,22 @@ function captureEvent(~, event)

function assertTextPanelsHaveDefaultRoom(ui)
settleLayout();
assert(ui.controls.notesText.textArea.Position(4) >= 105, ...
'statusPanel controls should start with enough height for multiple lines.');
notesHeight = ui.controls.notesText.textArea.Position(4);
assert(notesHeight >= 90, ...
'statusPanel controls should start with enough height for multiple lines; found %.0f px.', ...
notesHeight);
ui.logTab.Parent.SelectedTab = ui.logTab;
settleLayout();
assert(ui.controls.logPanel.textArea.Position(4) >= 180, ...
'logPanel controls should start with enough height for useful log history.');
logHeight = ui.controls.logPanel.textArea.Position(4);
assert(logHeight >= 170, ...
'logPanel controls should start with enough height for useful log history; found %.0f px.', ...
logHeight);
ui.setupTab.Parent.SelectedTab = ui.setupTab;
settleLayout();
assert(ui.controls.sourceImages.listbox.Position(4) >= 95, ...
'pathPanel lists should start with enough height for several entries.');
listHeight = ui.controls.sourceImages.listbox.Position(4);
assert(listHeight >= 90, ...
'pathPanel lists should start with enough height for several entries; found %.0f px.', ...
listHeight);
end

function settleLayout()
Expand Down
Loading