1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-08-18 21:35:45 +00:00

Add tests for Papers to replace Evince tests.

This test suite replaces the Evince test suite and
adds altered scripts and needles to go with the
Papers applications. At the same time, it provides
the same level of functionality and testability
as the original evince test.

Fixes: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/377
This commit is contained in:
Lukáš Růžička 2025-04-28 10:10:51 +02:00 committed by Adam Williamson
parent 4565945183
commit b3463c5746
273 changed files with 1152 additions and 1071 deletions

View File

@ -242,7 +242,7 @@ for selection in ("hide", "maximize", "restore"):
testtags.append(f"calculator_context_{selection}")
# After the change to menu_launch_type, applications should be whitelisted here
# to prevent the unused needles warning in case of apps_run_<application>.
for app in ("evince", "focuswriter", "gvim"):
for app in ("focuswriter", "gvim"):
testtags.append(f"apps_run_{app}")
# Needles that only originate from menu_launch_type and since they only occur
# in a variable, we need to whitelist them here, otherwise the script will
@ -253,6 +253,8 @@ runapps = ("seahorse", "kwrite", "tuxracer", "akregator", "ark", "discover", "do
"kolourpaint", "korganizer", "characters", "tux_racer")
for app in runapps:
testtags.append(f"apps_run_{app}")
for zoom in ('papers_zoom_add', 'papers_zoom_subtract'):
testtags.append(zoom)
# retcode tracker
ret = 0

View File

@ -1,16 +0,0 @@
{
"area": [
{
"height": 131,
"type": "match",
"width": 37,
"xpos": 224,
"ypos": 92
}
],
"properties": [],
"tags": [
"apps_run_dviewer",
"apps_run_evince"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

View File

@ -1,23 +0,0 @@
{
"area": [
{
"ypos": 112,
"xpos": 235,
"type": "match",
"width": 42,
"height": 131
},
{
"xpos": 444,
"ypos": 113,
"width": 136,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"apps_run_dviewer",
"apps_run_evince"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 445,
"ypos": 287,
"type": "match",
"width": 133,
"height": 146
}
],
"properties": [],
"tags": [
"evince_about_shown"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"type": "match",
"ypos": 43,
"height": 26,
"width": 25,
"xpos": 150
}
],
"properties": [],
"tags": [
"evince_add_annotation"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"ypos": 600,
"type": "match",
"height": 32,
"width": 30,
"xpos": 373
}
],
"properties": [],
"tags": [
"evince_annotation_placed"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"type": "match",
"width": 161,
"height": 45,
"xpos": 345,
"ypos": 584
}
],
"properties": [],
"tags": [
"evince_annotation_removed"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"ypos": 584,
"type": "match",
"height": 45,
"xpos": 345,
"width": 161
}
],
"properties": [],
"tags": [
"evince_annotation_removed"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 819,
"ypos": 259,
"width": 27,
"height": 70,
"type": "match"
}
],
"properties": [],
"tags": [
"evince_content_rotated_once"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"ypos": 412,
"xpos": 420,
"type": "match",
"width": 73,
"height": 56
}
],
"properties": [],
"tags": [
"evince_credits_shown"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 630,
"ypos": 550,
"width": 349,
"height": 56,
"type": "match"
}
],
"properties": [],
"tags": [
"evince_document_zoom_200"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

View File

@ -1,22 +0,0 @@
{
"properties": [],
"tags": [
"evince_dual_mode"
],
"area": [
{
"xpos": 322,
"ypos": 383,
"width": 88,
"height": 16,
"type": "match"
},
{
"xpos": 703,
"ypos": 428,
"width": 99,
"height": 16,
"type": "match"
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"height": 16,
"type": "match",
"width": 68,
"xpos": 295,
"ypos": 277
}
],
"properties": [],
"tags": [
"evince_file_select_pdf"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 395 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 408 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"ypos": 324,
"height": 16,
"type": "match",
"width": 68,
"xpos": 258
}
],
"properties": [],
"tags": [
"evince_file_select_pdf"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 496 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 495 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"height": 16,
"type": "match",
"width": 68,
"xpos": 189,
"ypos": 156
}
],
"properties": [],
"tags": [
"evince_file_select_pdf"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"width": 371,
"xpos": 68,
"type": "match",
"height": 42,
"ypos": 109
}
],
"properties": [],
"tags": [
"evince_help_shown"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"ypos": 107,
"xpos": 64,
"type": "match",
"width": 347,
"height": 42
}
],
"properties": [],
"tags": [
"evince_help_shown"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"height": 42,
"width": 393,
"type": "match",
"ypos": 109,
"xpos": 68
}
],
"properties": [],
"tags": [
"evince_help_shown"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"type": "match",
"ypos": 107,
"xpos": 63,
"height": 42,
"width": 373
}
],
"properties": [],
"tags": [
"evince_help_shown"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 68,
"ypos": 109,
"width": 371,
"height": 42,
"type": "match"
}
],
"properties": [],
"tags": [
"evince_help_shown"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"height": 20,
"width": 40,
"type": "match",
"xpos": 805,
"ypos": 335
}
],
"properties": [],
"tags": [
"evince_menu_dual"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 803,
"ypos": 545,
"type": "match",
"width": 40,
"height": 20
}
],
"properties": [],
"tags": [
"evince_menu_help"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"type": "match",
"ypos": 486,
"xpos": 802,
"height": 18,
"width": 75
}
],
"properties": [],
"tags": [
"evince_menu_properties"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"height": 20,
"width": 73,
"type": "match",
"ypos": 243,
"xpos": 803
}
],
"properties": [],
"tags": [
"evince_menu_saveas"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"ypos": 243,
"type": "match",
"xpos": 784,
"width": 68,
"height": 20
}
],
"properties": [],
"tags": [
"evince_menu_saveas"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

View File

@ -1,15 +0,0 @@
{
"properties": [],
"tags": [
"evince_night_mode"
],
"area": [
{
"xpos": 430,
"ypos": 315,
"width": 332,
"height": 35,
"type": "match"
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"width": 39,
"height": 20,
"ypos": 114,
"xpos": 234,
"type": "match"
}
],
"properties": [],
"tags": [
"evince_open_file_dialog"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"height": 20,
"type": "match",
"width": 33,
"xpos": 397,
"ypos": 91
}
],
"properties": [],
"tags": [
"evince_open_file_dialog"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"width": 110,
"height": 44,
"ypos": 246,
"xpos": 429,
"type": "match"
}
],
"properties": [],
"tags": [
"evince_properties_shown"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

View File

@ -1,15 +0,0 @@
{
"properties": [],
"tags": [
"evince_properties_shown"
],
"area": [
{
"xpos": 396,
"ypos": 349,
"width": 110,
"height": 44,
"type": "match"
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 417,
"ypos": 562,
"type": "match",
"width": 142,
"height": 18
}
],
"properties": [],
"tags": [
"evince_remove_annotation"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 KiB

View File

@ -1,15 +0,0 @@
{
"properties": [],
"tags": [
"evince_remove_annotation"
],
"area": [
{
"xpos": 414,
"ypos": 543,
"width": 131,
"height": 18,
"type": "match"
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 897,
"width": 26,
"type": "match",
"ypos": 42,
"height": 24
}
],
"properties": [],
"tags": [
"evince_search_button"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"ypos": 585,
"type": "match",
"height": 30,
"width": 43,
"xpos": 352
}
],
"properties": [],
"tags": [
"evince_select_annotation_place"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"height": 20,
"width": 65,
"type": "match",
"ypos": 118,
"xpos": 821
}
],
"properties": [],
"tags": [
"evince_select_zoom_fitwidth"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 821,
"ypos": 118,
"width": 65,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"evince_select_zoom_fitwidth"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"height": 33,
"width": 36,
"type": "match",
"ypos": 702,
"xpos": 495
}
],
"properties": [],
"tags": [
"evince_shortcuts_second"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 495,
"ypos": 702,
"width": 36,
"height": 33,
"type": "match"
}
],
"properties": [],
"tags": [
"evince_shortcuts_second"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"height": 25,
"width": 210,
"type": "match",
"ypos": 112,
"xpos": 594
}
],
"properties": [],
"tags": [
"evince_shortcuts_second_shown"
]
}

Some files were not shown because too many files have changed in this diff Show More