Skip to content

Commit

Permalink
scale: add half-aligned title template
Browse files Browse the repository at this point in the history
  • Loading branch information
Saviq committed Aug 15, 2024
1 parent 4589cfd commit 1fafc63
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,25 @@ Resource ${KVM_RESOURCE}

Test Setup Set Output Scale ${SCALE}


*** Variables ***
${T} ${CURDIR}
${FLOATING-SCREENSHOT} ${T}/${SCALE}-gtk4-demo-screenshot-floating.png
${MAXIMIZED-SCREENSHOT} ${T}/${SCALE}-gtk4-demo-screenshot-maximized.png
${DEMO-APP-TITLE} ${T}/${SCALE}-gtk4-demo-title-app-title.png
${BUILDER-BUTTON} ${T}/${SCALE}-gtk4-demo-button-builder.png
${BUILDER-TITLE} ${T}/${SCALE}-gtk4-demo-title-builder.png
${T} ${CURDIR}
${FLOATING-SCREENSHOT} ${T}/${SCALE}-gtk4-demo-screenshot-floating.png
${MAXIMIZED-SCREENSHOT} ${T}/${SCALE}-gtk4-demo-screenshot-maximized.png
${DEMO-APP-TITLE} ${T}/${SCALE}-gtk4-demo-title-app-title.png
${DEMO-APP-TITLE-HALF} ${T}/${SCALE}-gtk4-demo-title-app-title-half.png
${BUILDER-BUTTON} ${T}/${SCALE}-gtk4-demo-button-builder.png
${BUILDER-TITLE} ${T}/${SCALE}-gtk4-demo-title-builder.png


*** Test Cases ***
Ensure Scaling Is Visually Correct
Move Pointer To Proportional (1.0, 1.0)
Match ${FLOATING-SCREENSHOT}

Walk Pointer To ${DEMO-APP-TITLE}
${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
Move Pointer To Proportional (1.0, 1.0)
Expand All @@ -29,7 +34,9 @@ Ensure Scaling Is Visually Correct

Click Button With Fractional Scaling Enabled
Move Pointer To Proportional (1.0, 1.0)
Walk Pointer To ${DEMO-APP-TITLE}
${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

Expand Down

0 comments on commit 1fafc63

Please sign in to comment.