1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 05:53:09 +00:00

Create basic functions tests for Gedit.

This commit is contained in:
Lukáš Růžička 2020-01-09 13:54:54 +01:00
parent 70959aae18
commit b65f470eee
110 changed files with 1194 additions and 24 deletions

View File

@ -7,7 +7,7 @@ use Exporter;
use lockapi; use lockapi;
use testapi; use testapi;
our @EXPORT = qw/run_with_error_check type_safely type_very_safely desktop_vt boot_to_login_screen console_login console_switch_layout desktop_switch_layout console_loadkeys_us do_bootloader boot_decrypt check_release menu_launch_type repo_setup setup_workaround_repo cleanup_workaround_repo console_initial_setup handle_welcome_screen gnome_initial_setup anaconda_create_user check_desktop download_modularity_tests quit_firefox advisory_get_installed_packages advisory_check_nonmatching_packages start_with_launcher quit_with_shortcut disable_firefox_studies select_rescue_mode copy_devcdrom_as_isofile get_release_number check_left_bar check_top_bar check_prerelease check_version spell_version_number _assert_and_click is_branched rec_log click_unwanted_notifications repos_mirrorlist register_application get_registered_applications solidify_wallpaper/; our @EXPORT = qw/run_with_error_check type_safely type_very_safely desktop_vt boot_to_login_screen console_login console_switch_layout desktop_switch_layout console_loadkeys_us do_bootloader boot_decrypt check_release menu_launch_type repo_setup setup_workaround_repo cleanup_workaround_repo console_initial_setup handle_welcome_screen gnome_initial_setup anaconda_create_user check_desktop download_modularity_tests quit_firefox advisory_get_installed_packages advisory_check_nonmatching_packages start_with_launcher quit_with_shortcut disable_firefox_studies select_rescue_mode copy_devcdrom_as_isofile get_release_number check_left_bar check_top_bar check_prerelease check_version spell_version_number _assert_and_click is_branched rec_log click_unwanted_notifications repos_mirrorlist register_application get_registered_applications solidify_wallpaper check_and_install_git download_testdata/;
# We introduce this global variable to hold the list of applications that have # We introduce this global variable to hold the list of applications that have
# registered during the apps_startstop_test when they have sucessfully run. # registered during the apps_startstop_test when they have sucessfully run.
@ -1409,4 +1409,28 @@ sub solidify_wallpaper {
} }
} }
# This routine is used in Desktop test suites, such as Evince or Gedit.
# It checks if git is installed and installs it, if necessary.
sub check_and_install_git {
unless (get_var("CANNED")) {
if (script_run("rpm -q git")) {
assert_script_run("dnf install -y git");
}
}
}
# This routine is used in Desktop test suites. It downloads the test data from
# the repository and puts the file into correct locations.
sub download_testdata {
my ($repodir, $location) = @_;
# Navigate to the test's home directory
assert_script_run("cd /home/test/");
# Clone the test repository;
assert_script_run("git clone https://pagure.io/fedora-qa/openqa_testdata.git");
# Copy the test data into $repodir to $location.
assert_script_run("cp openqa_testdata/$repodir/* $location");
# Change ownership
assert_script_run("chown -R test:test $location");
}
1; 1;

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 119,
"xpos": 782,
"height": 18,
"type": "match",
"ypos": 499
}
],
"properties": [],
"tags": [
"gedit_about"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 547,
"ypos": 225,
"width": 52,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_about_credits"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 126,
"xpos": 449,
"height": 89,
"type": "match",
"ypos": 344
}
],
"properties": [],
"tags": [
"gedit_about_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 461,
"ypos": 604,
"width": 84,
"height": 146,
"type": "match",
"match": 99
}
],
"properties": [],
"tags": [
"gedit_bottompanel_on"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 22,
"ypos": 118,
"width": 112,
"height": 50,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_code_highlighted"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 490,
"ypos": 409,
"width": 49,
"height": 55,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_credits_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 20,
"ypos": 617,
"type": "match",
"width": 141,
"xpos": 777
}
],
"properties": [],
"tags": [
"gedit_display_linenumbers"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"ypos": 643,
"height": 18,
"width": 89,
"xpos": 777
}
],
"properties": [],
"tags": [
"gedit_display_margin"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 426,
"width": 36,
"type": "match",
"ypos": 325,
"height": 19
}
],
"properties": [],
"tags": [
"gedit_find"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 14,
"type": "match",
"ypos": 170,
"width": 61,
"xpos": 59
}
],
"properties": [],
"tags": [
"gedit_found_text"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 9,
"ypos": 85,
"width": 112,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_help_bread_main"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 107,
"ypos": 270,
"width": 106,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_help_color_schemes"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 198,
"ypos": 124,
"width": 217,
"height": 36,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_help_color_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 11,
"ypos": 379,
"width": 81,
"height": 22,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_help_files"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 520,
"ypos": 508,
"width": 121,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_help_search"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 116,
"ypos": 154,
"width": 111,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_help_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_highlight_current"
],
"area": [
{
"xpos": 778,
"ypos": 668,
"width": 64,
"height": 21,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_highlight_misspelt"
],
"area": [
{
"xpos": 786,
"ypos": 187,
"width": 135,
"height": 16,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 22,
"height": 245,
"ypos": 65,
"type": "match",
"width": 311
}
],
"properties": [],
"tags": [
"gedit_line_deleted"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 2,
"ypos": 205,
"width": 260,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_line_not_highlighted"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"ypos": 745,
"height": 18,
"width": 32,
"xpos": 819
}
],
"properties": [],
"tags": [
"gedit_line_reached"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_line_word"
],
"area": [
{
"xpos": 35,
"ypos": 167,
"width": 66,
"height": 14,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 1,
"ypos": 4,
"width": 28,
"height": 327,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_lines_not_numbered"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_margin_displayed"
],
"area": [
{
"xpos": 658,
"ypos": 240,
"width": 16,
"height": 81,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 678,
"ypos": 86,
"width": 58,
"height": 30,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_new_document_opened"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 20,
"type": "match",
"ypos": 325,
"xpos": 170,
"width": 77
}
],
"properties": [],
"tags": [
"gedit_replace"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 168,
"ypos": 190,
"width": 58,
"height": 21,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_replace_nothing"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 559,
"ypos": 747,
"width": 84,
"height": 14,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_select_highlighting"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 27,
"ypos": 135,
"width": 49,
"height": 18,
"type": "match"
},
{
"xpos": 538,
"ypos": 135,
"width": 63,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_shortcuts_four"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 571,
"ypos": 684,
"width": 21,
"height": 25,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_shortcuts_go_four"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 525,
"ypos": 687,
"width": 21,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_shortcuts_go_three"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 479,
"ypos": 687,
"width": 17,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_shortcuts_go_two"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 31,
"ypos": 136,
"width": 80,
"height": 20,
"type": "match"
},
{
"xpos": 563,
"ypos": 136,
"width": 149,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_shortcuts_one"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 28,
"ypos": 132,
"width": 82,
"height": 23,
"type": "match"
},
{
"xpos": 614,
"ypos": 133,
"width": 55,
"height": 23,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_shortcuts_three"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 32,
"ypos": 137,
"width": 119,
"height": 16,
"type": "match"
},
{
"xpos": 541,
"ypos": 135,
"width": 105,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_shortcuts_two"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 178,
"ypos": 602,
"width": 61,
"height": 20,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_side_on"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 537,
"width": 54,
"height": 19,
"ypos": 445,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_spelling_change"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"ypos": 169,
"height": 17,
"xpos": 25,
"width": 298
}
],
"properties": [],
"tags": [
"gedit_spelling_changed"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 198,
"ypos": 169,
"width": 42,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_spelling_highlighted"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 42,
"xpos": 313,
"height": 22,
"type": "match",
"ypos": 475
}
],
"properties": [],
"tags": [
"gedit_spelling_suggestion"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 77,
"xpos": 236,
"height": 71,
"ypos": 141,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_stats_shown"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 784,
"ypos": 381,
"width": 45,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_submenu_tools"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_text_added"
],
"area": [
{
"xpos": 0,
"ypos": 76,
"width": 322,
"height": 251,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 475,
"ypos": 40,
"width": 76,
"height": 32,
"type": "match"
}
],
"properties": [],
"tags": [
"gedit_text_file_opened"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 24,
"width": 315,
"type": "match",
"ypos": 171,
"height": 15
}
],
"properties": [],
"tags": [
"gedit_text_replaced"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"height": 20,
"ypos": 250,
"type": "match",
"width": 64,
"xpos": 855
}
],
"properties": [],
"tags": [
"gedit_tools_stats"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"width": 68,
"xpos": 185,
"ypos": 155,
"type": "match",
"height": 19
}
],
"properties": [],
"tags": [
"gedit_txt_file"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -12,4 +12,4 @@
"tags": [ "tags": [
"gnome_burger_menu" "gnome_burger_menu"
] ]
} }

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gnome_open_location_documents"
],
"area": [
{
"xpos": 15,
"ypos": 168,
"width": 101,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

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