summaryrefslogtreecommitdiff
path: root/test/testZoom.py
diff options
context:
space:
mode:
authorOz Tiram <[email protected]>2025-03-30 15:20:05 +0200
committerLuke from DC <[email protected]>2025-04-04 22:19:13 +0000
commitb1f21edcec82c25cbd6b59b521a841f86fb1f327 (patch)
tree57bed53a768722d58d0d4c081be54198f90d6cb6 /test/testZoom.py
parent0672f82ffb2e56ffb711703b3b786714d2bc794c (diff)
downloadatril-b1f21edcec82c25cbd6b59b521a841f86fb1f327.tar.bz2
atril-b1f21edcec82c25cbd6b59b521a841f86fb1f327.tar.xz
Initial support for meson
Mostly copy and paste from linuxmint/xreader Signed-off-by: Oz Tiram <[email protected]>
Diffstat (limited to 'test/testZoom.py')
-rwxr-xr-xtest/testZoom.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/testZoom.py b/test/testZoom.py
new file mode 100755
index 00000000..994a2ee9
--- /dev/null
+++ b/test/testZoom.py
@@ -0,0 +1,26 @@
+#!/usr/bin/python3
+
+# This test opens the View menu and test zoom features.
+
+from testCommon import run_app, bail
+
+from dogtail.procedural import *
+
+try:
+ run_app(file='test-links.pdf')
+
+ # Zoom In
+ focus.frame('test-links.pdf')
+ click('View', roleName='menu')
+ click('Zoom In', roleName='menu item')
+
+ # Zoom Out
+ click('View', roleName='menu')
+ click('Zoom Out', roleName='menu item')
+
+ # Close
+ click('File', roleName='menu')
+ click('Close', roleName='menu item')
+
+except:
+ bail()