diff --git a/needles/gnome/apps/eog/eog_about_credits.json b/needles/gnome/apps/eog/eog_about_credits.json new file mode 100644 index 00000000..e62709d6 --- /dev/null +++ b/needles/gnome/apps/eog/eog_about_credits.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 543, + "ypos": 227, + "width": 56, + "height": 15, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_about_credits" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_about_credits.png b/needles/gnome/apps/eog/eog_about_credits.png new file mode 100644 index 00000000..7e12dd53 Binary files /dev/null and b/needles/gnome/apps/eog/eog_about_credits.png differ diff --git a/needles/gnome/apps/eog/eog_about_shown.json b/needles/gnome/apps/eog/eog_about_shown.json new file mode 100644 index 00000000..914b8f3d --- /dev/null +++ b/needles/gnome/apps/eog/eog_about_shown.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "height": 94, + "type": "match", + "width": 135, + "xpos": 444, + "ypos": 340 + } + ], + "properties": [], + "tags": [ + "eog_about_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_about_shown.png b/needles/gnome/apps/eog/eog_about_shown.png new file mode 100644 index 00000000..7e12dd53 Binary files /dev/null and b/needles/gnome/apps/eog/eog_about_shown.png differ diff --git a/needles/gnome/apps/eog/eog_credits_shown-20211118.json b/needles/gnome/apps/eog/eog_credits_shown-20211118.json new file mode 100644 index 00000000..44b080fb --- /dev/null +++ b/needles/gnome/apps/eog/eog_credits_shown-20211118.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "ypos": 416, + "height": 57, + "xpos": 464, + "width": 149, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_credits_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_credits_shown-20211118.png b/needles/gnome/apps/eog/eog_credits_shown-20211118.png new file mode 100644 index 00000000..4ea4deb3 Binary files /dev/null and b/needles/gnome/apps/eog/eog_credits_shown-20211118.png differ diff --git a/needles/gnome/apps/eog/eog_credits_shown.json b/needles/gnome/apps/eog/eog_credits_shown.json new file mode 100644 index 00000000..39d4b755 --- /dev/null +++ b/needles/gnome/apps/eog/eog_credits_shown.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 464, + "ypos": 413, + "width": 149, + "height": 57, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_credits_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_credits_shown.png b/needles/gnome/apps/eog/eog_credits_shown.png new file mode 100644 index 00000000..b20c1bf3 Binary files /dev/null and b/needles/gnome/apps/eog/eog_credits_shown.png differ diff --git a/needles/gnome/apps/eog/eog_file_select_jpg.json b/needles/gnome/apps/eog/eog_file_select_jpg.json new file mode 100644 index 00000000..a8d17f39 --- /dev/null +++ b/needles/gnome/apps/eog/eog_file_select_jpg.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "height": 15, + "type": "match", + "width": 71, + "xpos": 330, + "ypos": 157 + } + ], + "properties": [], + "tags": [ + "eog_file_select_jpg" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_file_select_jpg.png b/needles/gnome/apps/eog/eog_file_select_jpg.png new file mode 100644 index 00000000..9904185f Binary files /dev/null and b/needles/gnome/apps/eog/eog_file_select_jpg.png differ diff --git a/needles/gnome/apps/eog/eog_fullscreen_on.json b/needles/gnome/apps/eog/eog_fullscreen_on.json new file mode 100644 index 00000000..38eb2a69 --- /dev/null +++ b/needles/gnome/apps/eog/eog_fullscreen_on.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 863, + "ypos": 11, + "width": 153, + "height": 65, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_fullscreen_on" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_fullscreen_on.png b/needles/gnome/apps/eog/eog_fullscreen_on.png new file mode 100644 index 00000000..5b63145e Binary files /dev/null and b/needles/gnome/apps/eog/eog_fullscreen_on.png differ diff --git a/needles/gnome/apps/eog/eog_gallery_show.json b/needles/gnome/apps/eog/eog_gallery_show.json new file mode 100644 index 00000000..b047cb32 --- /dev/null +++ b/needles/gnome/apps/eog/eog_gallery_show.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 862, + "ypos": 165, + "width": 98, + "height": 19, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_gallery_show" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_gallery_show.png b/needles/gnome/apps/eog/eog_gallery_show.png new file mode 100644 index 00000000..dd7ddd0a Binary files /dev/null and b/needles/gnome/apps/eog/eog_gallery_show.png differ diff --git a/needles/gnome/apps/eog/eog_gallery_shown.json b/needles/gnome/apps/eog/eog_gallery_shown.json new file mode 100644 index 00000000..f07efe40 --- /dev/null +++ b/needles/gnome/apps/eog/eog_gallery_shown.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 103, + "ypos": 685, + "width": 133, + "height": 26, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_gallery_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_gallery_shown.png b/needles/gnome/apps/eog/eog_gallery_shown.png new file mode 100644 index 00000000..2828a0db Binary files /dev/null and b/needles/gnome/apps/eog/eog_gallery_shown.png differ diff --git a/needles/gnome/apps/eog/eog_help_image_zoom.json b/needles/gnome/apps/eog/eog_help_image_zoom.json new file mode 100644 index 00000000..648233a7 --- /dev/null +++ b/needles/gnome/apps/eog/eog_help_image_zoom.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 518, + "ypos": 454, + "width": 53, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_help_image_zoom" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_help_image_zoom.png b/needles/gnome/apps/eog/eog_help_image_zoom.png new file mode 100644 index 00000000..360d97bf Binary files /dev/null and b/needles/gnome/apps/eog/eog_help_image_zoom.png differ diff --git a/needles/gnome/apps/eog/eog_help_shown.json b/needles/gnome/apps/eog/eog_help_shown.json new file mode 100644 index 00000000..63d614c6 --- /dev/null +++ b/needles/gnome/apps/eog/eog_help_shown.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "eog_help_shown" + ], + "area": [ + { + "xpos": 39, + "ypos": 106, + "width": 267, + "height": 45, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_help_shown.png b/needles/gnome/apps/eog/eog_help_shown.png new file mode 100644 index 00000000..c2ba4713 Binary files /dev/null and b/needles/gnome/apps/eog/eog_help_shown.png differ diff --git a/needles/gnome/apps/eog/eog_help_zoom_shown.json b/needles/gnome/apps/eog/eog_help_zoom_shown.json new file mode 100644 index 00000000..1fdd6834 --- /dev/null +++ b/needles/gnome/apps/eog/eog_help_zoom_shown.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 3, + "ypos": 125, + "width": 107, + "height": 38, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_help_zoom_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_help_zoom_shown.png b/needles/gnome/apps/eog/eog_help_zoom_shown.png new file mode 100644 index 00000000..00efb258 Binary files /dev/null and b/needles/gnome/apps/eog/eog_help_zoom_shown.png differ diff --git a/needles/gnome/apps/eog/eog_image_background.json b/needles/gnome/apps/eog/eog_image_background.json new file mode 100644 index 00000000..a2b0ffee --- /dev/null +++ b/needles/gnome/apps/eog/eog_image_background.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "width": 71, + "type": "match", + "ypos": 7, + "height": 91, + "xpos": 14 + } + ], + "properties": [], + "tags": [ + "eog_image_background" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_image_background.png b/needles/gnome/apps/eog/eog_image_background.png new file mode 100644 index 00000000..f2b85ee8 Binary files /dev/null and b/needles/gnome/apps/eog/eog_image_background.png differ diff --git a/needles/gnome/apps/eog/eog_image_default.json b/needles/gnome/apps/eog/eog_image_default.json new file mode 100644 index 00000000..b298679a --- /dev/null +++ b/needles/gnome/apps/eog/eog_image_default.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 515, + "ypos": 469, + "width": 183, + "height": 117, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_image_default" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_image_default.png b/needles/gnome/apps/eog/eog_image_default.png new file mode 100644 index 00000000..602a16bc Binary files /dev/null and b/needles/gnome/apps/eog/eog_image_default.png differ diff --git a/needles/gnome/apps/eog/eog_image_next.json b/needles/gnome/apps/eog/eog_image_next.json new file mode 100644 index 00000000..f56433fe --- /dev/null +++ b/needles/gnome/apps/eog/eog_image_next.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 403, + "ypos": 355, + "width": 155, + "height": 95, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_image_next" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_image_next.png b/needles/gnome/apps/eog/eog_image_next.png new file mode 100644 index 00000000..3469ce09 Binary files /dev/null and b/needles/gnome/apps/eog/eog_image_next.png differ diff --git a/needles/gnome/apps/eog/eog_image_rotated_left.json b/needles/gnome/apps/eog/eog_image_rotated_left.json new file mode 100644 index 00000000..76f89358 --- /dev/null +++ b/needles/gnome/apps/eog/eog_image_rotated_left.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 414, + "ypos": 279, + "width": 145, + "height": 98, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_image_rotated_left" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_image_rotated_left.png b/needles/gnome/apps/eog/eog_image_rotated_left.png new file mode 100644 index 00000000..fab90f90 Binary files /dev/null and b/needles/gnome/apps/eog/eog_image_rotated_left.png differ diff --git a/needles/gnome/apps/eog/eog_image_shown_increased.json b/needles/gnome/apps/eog/eog_image_shown_increased.json new file mode 100644 index 00000000..1a8ef057 --- /dev/null +++ b/needles/gnome/apps/eog/eog_image_shown_increased.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 46, + "ypos": 39, + "width": 67, + "height": 29, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_image_shown_increased" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_image_shown_increased.png b/needles/gnome/apps/eog/eog_image_shown_increased.png new file mode 100644 index 00000000..c2fef765 Binary files /dev/null and b/needles/gnome/apps/eog/eog_image_shown_increased.png differ diff --git a/needles/gnome/apps/eog/eog_img_info-20211118.json b/needles/gnome/apps/eog/eog_img_info-20211118.json new file mode 100644 index 00000000..8d97808e --- /dev/null +++ b/needles/gnome/apps/eog/eog_img_info-20211118.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "width": 214, + "height": 272, + "ypos": 92, + "xpos": 807 + } + ], + "properties": [], + "tags": [ + "eog_img_info" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_img_info-20211118.png b/needles/gnome/apps/eog/eog_img_info-20211118.png new file mode 100644 index 00000000..5e70f1e5 Binary files /dev/null and b/needles/gnome/apps/eog/eog_img_info-20211118.png differ diff --git a/needles/gnome/apps/eog/eog_img_info.json b/needles/gnome/apps/eog/eog_img_info.json new file mode 100644 index 00000000..3bb2e826 --- /dev/null +++ b/needles/gnome/apps/eog/eog_img_info.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 816, + "ypos": 91, + "width": 205, + "height": 285, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_img_info" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_img_info.png b/needles/gnome/apps/eog/eog_img_info.png new file mode 100644 index 00000000..70feacba Binary files /dev/null and b/needles/gnome/apps/eog/eog_img_info.png differ diff --git a/needles/gnome/apps/eog/eog_menu_about.json b/needles/gnome/apps/eog/eog_menu_about.json new file mode 100644 index 00000000..dbb3f394 --- /dev/null +++ b/needles/gnome/apps/eog/eog_menu_about.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 863, + "ypos": 464, + "width": 82, + "height": 14, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_menu_about" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_menu_about.png b/needles/gnome/apps/eog/eog_menu_about.png new file mode 100644 index 00000000..d4db6673 Binary files /dev/null and b/needles/gnome/apps/eog/eog_menu_about.png differ diff --git a/needles/gnome/apps/eog/eog_picture_name.json b/needles/gnome/apps/eog/eog_picture_name.json new file mode 100644 index 00000000..92c410aa --- /dev/null +++ b/needles/gnome/apps/eog/eog_picture_name.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 475, + "ypos": 47, + "width": 75, + "height": 21, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_picture_name" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_picture_name.png b/needles/gnome/apps/eog/eog_picture_name.png new file mode 100644 index 00000000..0e8c1bb9 Binary files /dev/null and b/needles/gnome/apps/eog/eog_picture_name.png differ diff --git a/needles/gnome/apps/eog/eog_set_wallpaper.json b/needles/gnome/apps/eog/eog_set_wallpaper.json new file mode 100644 index 00000000..f186c026 --- /dev/null +++ b/needles/gnome/apps/eog/eog_set_wallpaper.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 862, + "ypos": 253, + "width": 114, + "height": 17, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_set_wallpaper" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_set_wallpaper.png b/needles/gnome/apps/eog/eog_set_wallpaper.png new file mode 100644 index 00000000..02782b1c Binary files /dev/null and b/needles/gnome/apps/eog/eog_set_wallpaper.png differ diff --git a/needles/gnome/apps/eog/eog_shortcuts_alt_shown.json b/needles/gnome/apps/eog/eog_shortcuts_alt_shown.json new file mode 100644 index 00000000..71424ae7 --- /dev/null +++ b/needles/gnome/apps/eog/eog_shortcuts_alt_shown.json @@ -0,0 +1,22 @@ +{ + "area": [ + { + "xpos": 106, + "ypos": 137, + "width": 124, + "height": 17, + "type": "match" + }, + { + "xpos": 568, + "ypos": 138, + "width": 62, + "height": 15, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_shortcuts_alt_shown" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_shortcuts_alt_shown.png b/needles/gnome/apps/eog/eog_shortcuts_alt_shown.png new file mode 100644 index 00000000..50355fc2 Binary files /dev/null and b/needles/gnome/apps/eog/eog_shortcuts_alt_shown.png differ diff --git a/needles/gnome/apps/eog/eog_shortcuts_shown.json b/needles/gnome/apps/eog/eog_shortcuts_shown.json new file mode 100644 index 00000000..329c2a2a --- /dev/null +++ b/needles/gnome/apps/eog/eog_shortcuts_shown.json @@ -0,0 +1,22 @@ +{ + "properties": [], + "tags": [ + "eog_shortcuts_shown" + ], + "area": [ + { + "xpos": 107, + "ypos": 132, + "width": 63, + "height": 26, + "type": "match" + }, + { + "xpos": 640, + "ypos": 134, + "width": 46, + "height": 22, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_shortcuts_shown.png b/needles/gnome/apps/eog/eog_shortcuts_shown.png new file mode 100644 index 00000000..e6aa938b Binary files /dev/null and b/needles/gnome/apps/eog/eog_shortcuts_shown.png differ diff --git a/needles/gnome/apps/eog/eog_side_panel.json b/needles/gnome/apps/eog/eog_side_panel.json new file mode 100644 index 00000000..57b367f8 --- /dev/null +++ b/needles/gnome/apps/eog/eog_side_panel.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 793, + "ypos": 93, + "width": 162, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_side_panel" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_side_panel.png b/needles/gnome/apps/eog/eog_side_panel.png new file mode 100644 index 00000000..cb7968c3 Binary files /dev/null and b/needles/gnome/apps/eog/eog_side_panel.png differ diff --git a/needles/gnome/apps/eog/eog_submenu_show.json b/needles/gnome/apps/eog/eog_submenu_show.json new file mode 100644 index 00000000..ece21d24 --- /dev/null +++ b/needles/gnome/apps/eog/eog_submenu_show.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 860, + "ypos": 350, + "width": 43, + "height": 21, + "type": "match" + } + ], + "properties": [], + "tags": [ + "eog_submenu_show" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/eog/eog_submenu_show.png b/needles/gnome/apps/eog/eog_submenu_show.png new file mode 100644 index 00000000..43101d25 Binary files /dev/null and b/needles/gnome/apps/eog/eog_submenu_show.png differ diff --git a/needles/gnome/gnome_burger_menu_dark.json b/needles/gnome/gnome_burger_menu_dark.json new file mode 100644 index 00000000..b2de45b1 --- /dev/null +++ b/needles/gnome/gnome_burger_menu_dark.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 696, + "ypos": 123, + "height": 21, + "width": 26, + "type": "match" + } + ], + "properties": [], + "tags": [ + "gnome_burger_menu" + ] +} \ No newline at end of file diff --git a/needles/gnome/gnome_burger_menu_dark.png b/needles/gnome/gnome_burger_menu_dark.png new file mode 100644 index 00000000..5140a91a Binary files /dev/null and b/needles/gnome/gnome_burger_menu_dark.png differ diff --git a/needles/gnome/gnome_button_open_blue.json b/needles/gnome/gnome_button_open_blue.json new file mode 100644 index 00000000..be92150a --- /dev/null +++ b/needles/gnome/gnome_button_open_blue.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 959, + "ypos": 48, + "height": 16, + "width": 42, + "type": "match" + } + ], + "properties": [], + "tags": [ + "gnome_button_open" + ] +} \ No newline at end of file diff --git a/needles/gnome/gnome_button_open_blue.png b/needles/gnome/gnome_button_open_blue.png new file mode 100644 index 00000000..f19b2560 Binary files /dev/null and b/needles/gnome/gnome_button_open_blue.png differ diff --git a/needles/gnome/gnome_dirs_pictures.json b/needles/gnome/gnome_dirs_pictures.json new file mode 100644 index 00000000..1bb99825 --- /dev/null +++ b/needles/gnome/gnome_dirs_pictures.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 11, + "ypos": 283, + "width": 20, + "height": 17, + "type": "match" + } + ], + "properties": [], + "tags": [ + "gnome_dirs_pictures" + ] +} \ No newline at end of file diff --git a/needles/gnome/gnome_dirs_pictures.png b/needles/gnome/gnome_dirs_pictures.png new file mode 100644 index 00000000..59b8e714 Binary files /dev/null and b/needles/gnome/gnome_dirs_pictures.png differ diff --git a/templates.fif.json b/templates.fif.json index 765d48b8..01d788d2 100644 --- a/templates.fif.json +++ b/templates.fif.json @@ -993,6 +993,21 @@ "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%" } }, + "eog": { + "profiles": { + "fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50, + "fedora-Silverblue-dvd_ostree-iso-x86_64-*-64bit": 50, + "fedora-Workstation-live-iso-ppc64le-*-ppc64le": 20, + "fedora-Workstation-live-iso-x86_64-*-64bit": 20, + "fedora-Workstation-raw_xz-raw.xz-aarch64-*-aarch64": 22 + }, + "settings": { + "BOOTFROM": "c", + "HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2", + "POSTINSTALL_PATH": "tests/applications/eog", + "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%" + } + }, "desktop_update_graphical": { "profiles": { "fedora-KDE-live-iso-x86_64-*-64bit": 32, diff --git a/tests/applications/eog/aaa_setup.pm b/tests/applications/eog/aaa_setup.pm new file mode 100644 index 00000000..dd9c11b5 --- /dev/null +++ b/tests/applications/eog/aaa_setup.pm @@ -0,0 +1,52 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script will download the test data for evince, start the application, +# and set a milestone as a starting point for the other EoG tests. + +sub run { + my $self = shift; + # Switch to console + $self->root_console(tty=>3); + # Perform git test + check_and_install_git(); + # Download the test data + download_testdata("eog", "Pictures"); + # Exit the terminal + desktop_vt; + + # Start the application + menu_launch_type("image viewer"); + # Check that is started + assert_screen 'apps_run_imageviewer'; + + # Fullsize the EoG window. + send_key("super-up"); + + # Open the test file to create a starting point for the other EoG tests. + send_key("ctrl-o"); + + if (get_var("CANNED") && !check_screen("gnome_dirs_pictures")) { + # open the Pictures folder. + assert_and_click("gnome_dirs_pictures", button => "left", timeout => 30); + } + + # Select the image.jpg file. + assert_and_click("eog_file_select_jpg", button => "left", timeout => 30); + + # Hit enter to open it. + send_key("ret"); + + # Check that the file has been successfully opened. + assert_screen("eog_image_default"); +} + +sub test_flags { + return {fatal => 1, milestone => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/eog/about.pm b/tests/applications/eog/about.pm new file mode 100644 index 00000000..7c27412b --- /dev/null +++ b/tests/applications/eog/about.pm @@ -0,0 +1,27 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part tests if EoG can show the About window. + +sub run { + my $self = shift; + + # Open the menu + send_key("f10"); + # Click on the About item + assert_and_click("eog_menu_about"); + assert_screen("eog_about_shown"); + # Click on Credits + assert_and_click("eog_about_credits"); + assert_screen("eog_credits_shown"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/eog/basic_view.pm b/tests/applications/eog/basic_view.pm new file mode 100644 index 00000000..fcaae107 --- /dev/null +++ b/tests/applications/eog/basic_view.pm @@ -0,0 +1,30 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part tests if the application basic layout shows basic info. + +sub run { + my $self = shift; + + # Check that the picture name is shown + assert_screen "eog_picture_name"; + + # Check that the Side panel is visible, try to make it visible if it is not. + if (!check_screen("eog_side_panel")) { + send_key("f9"); + } + assert_screen("eog_side_panel"); + + # Check that info on side panel is correct + assert_screen("eog_img_info"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/eog/browse.pm b/tests/applications/eog/browse.pm new file mode 100644 index 00000000..3de1a855 --- /dev/null +++ b/tests/applications/eog/browse.pm @@ -0,0 +1,25 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part tests if the application can navigate through the current folder. + +sub run { + my $self = shift; + + # Go to next picture. + send_key("right"); + assert_screen("eog_image_next"); + # Go to previous picture + send_key("left"); + assert_and_click("eog_image_default"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/eog/fullscreen.pm b/tests/applications/eog/fullscreen.pm new file mode 100644 index 00000000..ab70166c --- /dev/null +++ b/tests/applications/eog/fullscreen.pm @@ -0,0 +1,28 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part tests if the application can be switched to full screen. + +sub run { + my $self = shift; + + # Toggle full screen + send_key("f11"); + wait_still_screen 2; + assert_screen("eog_fullscreen_on"); + + # Return to normal mode + send_key("f11"); + wait_still_screen 2; + assert_screen("eog_image_default"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/eog/help.pm b/tests/applications/eog/help.pm new file mode 100644 index 00000000..f151effc --- /dev/null +++ b/tests/applications/eog/help.pm @@ -0,0 +1,26 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part tests if the application can show help. + +sub run { + my $self = shift; + sleep 2; + + # Open the shortcuts + send_key("f1"); + assert_screen("eog_help_shown"); + # Try another screen + assert_and_click("eog_help_image_zoom"); + assert_screen("eog_help_zoom_shown"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/eog/pic_to_wallpaper.pm b/tests/applications/eog/pic_to_wallpaper.pm new file mode 100644 index 00000000..76973a14 --- /dev/null +++ b/tests/applications/eog/pic_to_wallpaper.pm @@ -0,0 +1,32 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part tests if the application can put an image as a wallpaper. + +sub run { + my $self = shift; + sleep 2; + + # Go to the menu + send_key("f10"); + # Set as background + assert_and_click("eog_set_wallpaper"); + # Confirm + send_key("tab"); + send_key("ret"); + # Close the application + send_key("ctrl-q"); + # Check that the wallpaper was set + assert_screen("eog_image_background"); + +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/eog/rotate.pm b/tests/applications/eog/rotate.pm new file mode 100644 index 00000000..79626137 --- /dev/null +++ b/tests/applications/eog/rotate.pm @@ -0,0 +1,25 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part tests if the application can rotate the displayed picture. + +sub run { + my $self = shift; + + # Rotate left + send_key("shift-ctrl-r"); + assert_screen("eog_image_rotated_left"); + # Rotate right + send_key("ctrl-r"); + assert_and_click("eog_image_default"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/eog/save_as.pm b/tests/applications/eog/save_as.pm new file mode 100644 index 00000000..4df158e1 --- /dev/null +++ b/tests/applications/eog/save_as.pm @@ -0,0 +1,38 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part tests if the application can save the image as a different file. + +sub run { + my $self = shift; + sleep 2; + assert_screen("eog_image_default"); + + # Shift-ctrl-S to save a file as a new file. + send_key("shift-ctrl-s"); + + # Type the new name, this should be possible without any intervention. + type_very_safely("new_image"); + # Hit enter to confirm + send_key("ret"); + wait_still_screen("2"); + + # Go to console + $self->root_console(tty=>3); + + # List the location + assert_script_run("ls /home/test/Pictures/"); + + # Compare the files + assert_script_run("diff /home/test/Pictures/image.jpg /home/test/Pictures/new_image.jpg"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/eog/shortcuts.pm b/tests/applications/eog/shortcuts.pm new file mode 100644 index 00000000..fe68cdbf --- /dev/null +++ b/tests/applications/eog/shortcuts.pm @@ -0,0 +1,27 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part tests if the application can show the shortcuts. + +sub run { + my $self = shift; + sleep 2; + + # Open the shortcuts + send_key("ctrl-?"); + assert_screen("eog_shortcuts_shown"); + # Try another screen + send_key("right"); + send_key("ret"); + assert_screen("eog_shortcuts_alt_shown"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/eog/show_gallery.pm b/tests/applications/eog/show_gallery.pm new file mode 100644 index 00000000..0571a175 --- /dev/null +++ b/tests/applications/eog/show_gallery.pm @@ -0,0 +1,33 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part tests if the application can show the image gallery. + +sub run { + my $self = shift; + sleep 2; + + # Show the image gallery. + send_key("ctrl-f9"); + unless (check_screen("eog_gallery_shown")) { + record_soft_failure("Key combo does not work, issue https://gitlab.gnome.org/GNOME/gtk/-/issues/4171"); + # Open the menu + send_key("f10"); + # Open Submenu Show + assert_and_click("eog_submenu_show"); + # Toggle gallery + assert_and_click("eog_gallery_show"); + + } + assert_screen("eog_gallery_shown"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/eog/zoom.pm b/tests/applications/eog/zoom.pm new file mode 100644 index 00000000..3ce24e49 --- /dev/null +++ b/tests/applications/eog/zoom.pm @@ -0,0 +1,26 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This part tests if the application can change the zoom for the displayed picture. + +sub run { + my $self = shift; + sleep 2; + + # Make the image size 1:1 + send_key("1"); + assert_screen("eog_image_shown_increased"); + # Return to the best fit + send_key("f"); + assert_and_click("eog_image_default"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: