1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-28 08:33:08 +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 649fcc51f1
commit e7ebf47f33
102 changed files with 1442 additions and 0 deletions

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_about_shown"
],
"area": [
{
"xpos": 384,
"ypos": 293,
"width": 56,
"height": 81,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_choose_file"
],
"area": [
{
"xpos": 31,
"ypos": 146,
"width": 67,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_clear_highlight"
],
"area": [
{
"xpos": 784,
"ypos": 290,
"width": 104,
"height": 21,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_code_added"
],
"area": [
{
"xpos": 2,
"ypos": 76,
"width": 300,
"height": 94,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_goto_line"
],
"area": [
{
"xpos": 783,
"ypos": 317,
"width": 81,
"height": 18,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 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 @@
{
"properties": [],
"tags": [
"gedit_highlight_mode"
],
"area": [
{
"xpos": 785,
"ypos": 166,
"width": 65,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_highlight_python"
],
"area": [
{
"xpos": 2,
"ypos": 76,
"width": 301,
"height": 96,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_highlight_search"
],
"area": [
{
"xpos": 371,
"ypos": 207,
"width": 51,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_highlight_select"
],
"area": [
{
"xpos": 627,
"ypos": 154,
"width": 46,
"height": 21,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 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 @@
{
"properties": [],
"tags": [
"gedit_lines_numbered"
],
"area": [
{
"xpos": 5,
"ypos": 77,
"width": 55,
"height": 33,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 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 @@
{
"properties": [],
"tags": [
"gedit_menu_view"
],
"area": [
{
"xpos": 780,
"ypos": 347,
"width": 43,
"height": 21,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_misspelt_highlighted"
],
"area": [
{
"xpos": 175,
"ypos": 165,
"width": 48,
"height": 18,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_new_tab"
],
"area": [
{
"xpos": 104,
"ypos": 40,
"width": 23,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_new_window"
],
"area": [
{
"xpos": 783,
"ypos": 144,
"width": 95,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_open"
],
"area": [
{
"xpos": 19,
"ypos": 40,
"width": 66,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_replace_all"
],
"area": [
{
"xpos": 453,
"ypos": 526,
"width": 79,
"height": 18,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 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 @@
{
"properties": [],
"tags": [
"gedit_side_panel"
],
"area": [
{
"xpos": 785,
"ypos": 136,
"width": 73,
"height": 15,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_sidepanel_on"
],
"area": [
{
"xpos": 22,
"ypos": 104,
"width": 140,
"height": 21,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_stats_shown"
],
"area": [
{
"xpos": 59,
"ypos": 186,
"width": 255,
"height": 21,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_switchoff"
],
"area": [
{
"xpos": 983,
"ypos": 31,
"width": 37,
"height": 40,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_tab_opened"
],
"area": [
{
"xpos": 679,
"ypos": 81,
"width": 59,
"height": 36,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 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 @@
{
"properties": [],
"tags": [
"gedit_text_replaced"
],
"area": [
{
"xpos": 2,
"ypos": 166,
"width": 315,
"height": 15,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_textfield_focus"
],
"area": [
{
"xpos": 25,
"ypos": 63,
"width": 109,
"height": 123,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gedit_tools"
],
"area": [
{
"xpos": 781,
"ypos": 375,
"width": 66,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gnome_burger_menu"
],
"area": [
{
"xpos": 944,
"ypos": 40,
"width": 19,
"height": 21,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"gnome_save"
],
"area": [
{
"xpos": 879,
"ypos": 42,
"width": 36,
"height": 18,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

53
q Normal file
View File

@ -0,0 +1,53 @@
VARIABLES.md:| `KEEPHDDS` | boolean | `false`/not set | don't delete HDD after test finishes |
VARIABLES.md:| `PARTITIONING` | string (`custom_software_raid`, `guided_delete_all`, ...) | `guided_empty` | nothing | load specified test for partitioning part (when `PARTITIONING=guided_delete_all`, `tests/disk_guided_delete_all.pm` is loaded) and optionally post-install partitioning check (if `tests/disk_guided_delete_all_postinstall.pm` exists, it will be loaded after login to the installed system). Also, if value starts with `custom_`, the `select_disks()` method will check the custom partitioning box |
lib/anaconda.pm:our @EXPORT = qw/select_disks custom_scheme_select custom_blivet_add_partition custom_change_type custom_change_fs custom_change_device custom_delete_part get_full_repo get_mirrorlist_url/;
lib/anaconda.pm: # Damn animation delay can cause bad clicks here too - wait for it
lib/anaconda.pm:sub custom_delete_part {
lib/anaconda.pm: # Used for deletion of previously added partitions in custom
lib/anaconda.pm: # `custom_delete_part('swap');` uses needle
lib/anaconda.pm: # `anaconda_part_select_swap` to delete previously added swap
lib/anaconda.pm: assert_and_click "anaconda_part_delete";
lib/libgedit.pm:sub delete_line {
lib/libgedit.pm: send_key "del";
lib/libgedit.pm: assert_screen "gedit_line_deleted";
lib/utils.pm:# previous boot. Will suffer a ~30 second delay if there's a chance
needles/anaconda/install_destination/delete_all_btn-cantarell101.json: "anaconda_install_destination_delete_all_btn",
needles/anaconda/install_destination/delete_all_btn-gtk3245-20190206.json: "anaconda_install_destination_delete_all_btn",
Binary file needles/anaconda/install_destination/delete_all_btn-gtk3245-20190206.png matches
Binary file needles/anaconda/install_destination/french/save_passphrase_french-gtk3245-20190206.png matches
Binary file needles/anaconda/install_destination/reclaim_space_btn-gtk3245-20190206.png matches
needles/anaconda/install_destination/reclaim_space_delete_btn-cantarell101.json: "anaconda_install_destination_reclaim_space_delete_btn",
needles/anaconda/install_destination/reclaim_space_delete_btn-gtk3245-20190206.json: "anaconda_install_destination_reclaim_space_delete_btn",
Binary file needles/anaconda/install_destination/reclaim_space_delete_btn-gtk3245-20190206.png matches
Binary file needles/anaconda/install_destination/reclaim_space_shrink_btn-gtk3245-20190206.png matches
Binary file needles/anaconda/install_destination/save_passphrase-gtk3245-20190206.png matches
Binary file needles/anaconda/install_process/root_password_screen-f28-20190118.png matches
Binary file needles/anaconda/install_process/russian/user_creation_password_input_russian.png matches
needles/anaconda/partitioning/delete-gtk3245-20190206.json: "anaconda_part_delete",
needles/anaconda/partitioning/delete.json: "anaconda_part_delete",
Binary file needles/anaconda/vnc/boxes_fullscreen-20191105.png matches
Binary file needles/gnome/apps/apps_menu_terminal-20190128.png matches
needles/gnome/gedit/gedit_line_deleted.json: "gedit_line_deleted"
Binary file needles/kde/apps/gwenview_runs.png matches
Binary file needles/kde/apps/kgpg_keypair_cancel.png matches
Binary file needles/kde/apps/kmousetool_runs.png matches
Binary file needles/kde/apps/konversation_confirm_close.png matches
templates: test_suite => { name => "install_delete_pata" },
templates: test_suite => { name => "install_delete_pata" },
templates: test_suite => { name => "install_delete_partial" },
templates: test_suite => { name => "install_delete_partial" },
templates: test_suite => { name => "install_delete_partial" },
templates: test_suite => { name => "install_delete_partial" },
templates: name => "install_delete_pata",
templates: { key => "PARTITIONING", value => "guided_delete_all" },
templates: # this delays VM boot so we can wait till the PXE server
templates: name => "install_delete_partial",
templates: { key => "PARTITIONING", value => "guided_delete_partial" },
tests/_support_server.pm: # image delivery method)
tests/apptests/gedit.pm: libgedit::delete_line();
tests/apptests/gedit.pm: # Use history to undelete the line again
tests/base_services_start.pm: # "Job foo.service/start deleted to break ordering cycle"-type
tests/base_services_start.pm: assert_script_run "! journalctl -b | grep 'deleted to break ordering'";
tests/disk_custom_no_swap.pm: custom_delete_part('swap');
tests/disk_guided_delete_all.pm: assert_and_click "anaconda_install_destination_delete_all_btn";
tests/disk_guided_delete_partial.pm: assert_and_click "anaconda_install_destination_reclaim_space_delete_btn";

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