-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scale: redo the test to avoid assuming resolution
Also drop "fractional", it's not only testing that.
- Loading branch information
1 parent
2422096
commit 31dbc8a
Showing
39 changed files
with
71 additions
and
85 deletions.
There are no files selected for viewing
3 changes: 0 additions & 3 deletions
3
...ci/tests/robot/suites/fractional_scale_v1/1.0-gtk4-demo-screenshot-floating.png
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...i/tests/robot/suites/fractional_scale_v1/1.0-gtk4-demo-screenshot-maximized.png
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...ci/tests/robot/suites/fractional_scale_v1/1.5-gtk4-demo-screenshot-floating.png
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...i/tests/robot/suites/fractional_scale_v1/1.5-gtk4-demo-screenshot-maximized.png
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
.../mir_ci/tests/robot/suites/fractional_scale_v1/2.0-gtk4-demo-button-builder.png
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...ci/tests/robot/suites/fractional_scale_v1/2.0-gtk4-demo-screenshot-floating.png
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...i/tests/robot/suites/fractional_scale_v1/2.0-gtk4-demo-screenshot-maximized.png
This file was deleted.
Oops, something went wrong.
59 changes: 0 additions & 59 deletions
59
mir-ci/mir_ci/tests/robot/suites/fractional_scale_v1/fractional_scale_v1.robot
This file was deleted.
Oops, something went wrong.
File renamed without changes
3 changes: 3 additions & 0 deletions
3
mir-ci/mir_ci/tests/robot/suites/scale/1.0-gtk4-demo-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
mir-ci/mir_ci/tests/robot/suites/scale/1.0-gtk4-demo-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions
3
mir-ci/mir_ci/tests/robot/suites/scale/1.0-gtk4-demo-title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions
3
mir-ci/mir_ci/tests/robot/suites/scale/1.5-gtk4-demo-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
mir-ci/mir_ci/tests/robot/suites/scale/1.5-gtk4-demo-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions
3
mir-ci/mir_ci/tests/robot/suites/scale/1.5-gtk4-demo-title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions
3
mir-ci/mir_ci/tests/robot/suites/scale/2.0-gtk4-demo-button.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
mir-ci/mir_ci/tests/robot/suites/scale/2.0-gtk4-demo-screenshot.png
Oops, something went wrong.
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions
3
mir-ci/mir_ci/tests/robot/suites/scale/2.0-gtk4-demo-title.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
*** Settings *** | ||
Resource ${KVM_RESOURCE} | ||
|
||
Suite Setup Suite Setup | ||
Test Setup Set Output Scale ${SCALE} | ||
|
||
|
||
*** Variables *** | ||
${T} ${CURDIR} | ||
${SCREENSHOT} ${T}/${SCALE}-gtk4-demo-screenshot.png | ||
${DEMO-APP-TITLE} ${T}/${SCALE}-gtk4-demo-title-main.png | ||
${DEMO-APP-TITLE-HALF} ${T}/${SCALE}-gtk4-demo-title-main-half.png | ||
${BUTTON} ${T}/${SCALE}-gtk4-demo-button.png | ||
${TITLE} ${T}/${SCALE}-gtk4-demo-title.png | ||
|
||
|
||
*** Test Cases *** | ||
Ensure Scaling Is Visually Correct | ||
Move Pointer To Proportional (1.0, 1.0) | ||
|
||
Match ${SCREENSHOT} | ||
|
||
Click Button With Scaling Enabled | ||
Walk Pointer To ${BUTTON} | ||
Click LEFT Button | ||
|
||
Match ${TITLE} | ||
|
||
|
||
*** Keywords *** | ||
Suite Setup | ||
Set Output Scale ${SCALE} | ||
# Work around https://github.com/canonical/mir/issues/3553 | ||
${aligned}= Run Keyword And Return Status | ||
... Walk Pointer To ${DEMO-APP-TITLE} | ||
IF ${aligned} == False Walk Pointer To ${DEMO-APP-TITLE-HALF} | ||
Click LEFT Button | ||
Click LEFT Button |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters