diff --git a/needles/gnome/gedit/gedit_about.json b/needles/gnome/gedit/gedit_about.json new file mode 100644 index 00000000..751d5662 --- /dev/null +++ b/needles/gnome/gedit/gedit_about.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_about" + ], + "area": [ + { + "xpos": 783, + "ypos": 494, + "width": 119, + "height": 18, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_about.png b/needles/gnome/gedit/gedit_about.png new file mode 100644 index 00000000..94416444 Binary files /dev/null and b/needles/gnome/gedit/gedit_about.png differ diff --git a/needles/gnome/gedit/gedit_about_shown.json b/needles/gnome/gedit/gedit_about_shown.json new file mode 100644 index 00000000..40f48ace --- /dev/null +++ b/needles/gnome/gedit/gedit_about_shown.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_about_shown" + ], + "area": [ + { + "xpos": 384, + "ypos": 293, + "width": 56, + "height": 81, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_about_shown.png b/needles/gnome/gedit/gedit_about_shown.png new file mode 100644 index 00000000..e0010ce6 Binary files /dev/null and b/needles/gnome/gedit/gedit_about_shown.png differ diff --git a/needles/gnome/gedit/gedit_check_spelling.json b/needles/gnome/gedit/gedit_check_spelling.json new file mode 100644 index 00000000..333bc031 --- /dev/null +++ b/needles/gnome/gedit/gedit_check_spelling.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_check_spelling" + ], + "area": [ + { + "xpos": 784, + "ypos": 134, + "width": 110, + "height": 20, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_check_spelling.png b/needles/gnome/gedit/gedit_check_spelling.png new file mode 100644 index 00000000..0d9aa60e Binary files /dev/null and b/needles/gnome/gedit/gedit_check_spelling.png differ diff --git a/needles/gnome/gedit/gedit_choose_file.json b/needles/gnome/gedit/gedit_choose_file.json new file mode 100644 index 00000000..15f78024 --- /dev/null +++ b/needles/gnome/gedit/gedit_choose_file.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_choose_file" + ], + "area": [ + { + "xpos": 31, + "ypos": 146, + "width": 67, + "height": 20, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_choose_file.png b/needles/gnome/gedit/gedit_choose_file.png new file mode 100644 index 00000000..ade1ae8a Binary files /dev/null and b/needles/gnome/gedit/gedit_choose_file.png differ diff --git a/needles/gnome/gedit/gedit_clear_highlight.json b/needles/gnome/gedit/gedit_clear_highlight.json new file mode 100644 index 00000000..88ad6ecf --- /dev/null +++ b/needles/gnome/gedit/gedit_clear_highlight.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_clear_highlight" + ], + "area": [ + { + "xpos": 784, + "ypos": 290, + "width": 104, + "height": 21, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_clear_highlight.png b/needles/gnome/gedit/gedit_clear_highlight.png new file mode 100644 index 00000000..cef79794 Binary files /dev/null and b/needles/gnome/gedit/gedit_clear_highlight.png differ diff --git a/needles/gnome/gedit/gedit_code_added.json b/needles/gnome/gedit/gedit_code_added.json new file mode 100644 index 00000000..1e548be8 --- /dev/null +++ b/needles/gnome/gedit/gedit_code_added.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_code_added" + ], + "area": [ + { + "xpos": 2, + "ypos": 76, + "width": 300, + "height": 94, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_code_added.png b/needles/gnome/gedit/gedit_code_added.png new file mode 100644 index 00000000..2baec73b Binary files /dev/null and b/needles/gnome/gedit/gedit_code_added.png differ diff --git a/needles/gnome/gedit/gedit_display_linenumbers.json b/needles/gnome/gedit/gedit_display_linenumbers.json new file mode 100644 index 00000000..b712cf7f --- /dev/null +++ b/needles/gnome/gedit/gedit_display_linenumbers.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_display_linenumbers" + ], + "area": [ + { + "xpos": 778, + "ypos": 617, + "width": 141, + "height": 20, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_display_linenumbers.png b/needles/gnome/gedit/gedit_display_linenumbers.png new file mode 100644 index 00000000..6ee212b7 Binary files /dev/null and b/needles/gnome/gedit/gedit_display_linenumbers.png differ diff --git a/needles/gnome/gedit/gedit_display_margin.json b/needles/gnome/gedit/gedit_display_margin.json new file mode 100644 index 00000000..5c701f72 --- /dev/null +++ b/needles/gnome/gedit/gedit_display_margin.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_display_margin" + ], + "area": [ + { + "xpos": 778, + "ypos": 643, + "width": 89, + "height": 18, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_display_margin.png b/needles/gnome/gedit/gedit_display_margin.png new file mode 100644 index 00000000..d16ea44f Binary files /dev/null and b/needles/gnome/gedit/gedit_display_margin.png differ diff --git a/needles/gnome/gedit/gedit_find.json b/needles/gnome/gedit/gedit_find.json new file mode 100644 index 00000000..555f7d7f --- /dev/null +++ b/needles/gnome/gedit/gedit_find.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_find" + ], + "area": [ + { + "xpos": 482, + "ypos": 372, + "width": 36, + "height": 19, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_find.png b/needles/gnome/gedit/gedit_find.png new file mode 100644 index 00000000..9013f466 Binary files /dev/null and b/needles/gnome/gedit/gedit_find.png differ diff --git a/needles/gnome/gedit/gedit_found_text.json b/needles/gnome/gedit/gedit_found_text.json new file mode 100644 index 00000000..103c6336 --- /dev/null +++ b/needles/gnome/gedit/gedit_found_text.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_found_text" + ], + "area": [ + { + "xpos": 38, + "ypos": 167, + "width": 61, + "height": 14, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_found_text.png b/needles/gnome/gedit/gedit_found_text.png new file mode 100644 index 00000000..356203ec Binary files /dev/null and b/needles/gnome/gedit/gedit_found_text.png differ diff --git a/needles/gnome/gedit/gedit_goto_line.json b/needles/gnome/gedit/gedit_goto_line.json new file mode 100644 index 00000000..b4b63b8a --- /dev/null +++ b/needles/gnome/gedit/gedit_goto_line.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_goto_line" + ], + "area": [ + { + "xpos": 783, + "ypos": 317, + "width": 81, + "height": 18, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_goto_line.png b/needles/gnome/gedit/gedit_goto_line.png new file mode 100644 index 00000000..1827e0b2 Binary files /dev/null and b/needles/gnome/gedit/gedit_goto_line.png differ diff --git a/needles/gnome/gedit/gedit_highlight_current.json b/needles/gnome/gedit/gedit_highlight_current.json new file mode 100644 index 00000000..68a45508 --- /dev/null +++ b/needles/gnome/gedit/gedit_highlight_current.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_highlight_current" + ], + "area": [ + { + "xpos": 778, + "ypos": 668, + "width": 64, + "height": 21, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_highlight_current.png b/needles/gnome/gedit/gedit_highlight_current.png new file mode 100644 index 00000000..686fce48 Binary files /dev/null and b/needles/gnome/gedit/gedit_highlight_current.png differ diff --git a/needles/gnome/gedit/gedit_highlight_misspelt.json b/needles/gnome/gedit/gedit_highlight_misspelt.json new file mode 100644 index 00000000..c95e77ff --- /dev/null +++ b/needles/gnome/gedit/gedit_highlight_misspelt.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_highlight_misspelt" + ], + "area": [ + { + "xpos": 786, + "ypos": 187, + "width": 135, + "height": 16, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_highlight_misspelt.png b/needles/gnome/gedit/gedit_highlight_misspelt.png new file mode 100644 index 00000000..1ae6623d Binary files /dev/null and b/needles/gnome/gedit/gedit_highlight_misspelt.png differ diff --git a/needles/gnome/gedit/gedit_highlight_mode.json b/needles/gnome/gedit/gedit_highlight_mode.json new file mode 100644 index 00000000..1a5827fb --- /dev/null +++ b/needles/gnome/gedit/gedit_highlight_mode.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_highlight_mode" + ], + "area": [ + { + "xpos": 785, + "ypos": 166, + "width": 65, + "height": 22, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_highlight_mode.png b/needles/gnome/gedit/gedit_highlight_mode.png new file mode 100644 index 00000000..80f6e961 Binary files /dev/null and b/needles/gnome/gedit/gedit_highlight_mode.png differ diff --git a/needles/gnome/gedit/gedit_highlight_python.json b/needles/gnome/gedit/gedit_highlight_python.json new file mode 100644 index 00000000..7ea96389 --- /dev/null +++ b/needles/gnome/gedit/gedit_highlight_python.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_highlight_python" + ], + "area": [ + { + "xpos": 2, + "ypos": 76, + "width": 301, + "height": 96, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_highlight_python.png b/needles/gnome/gedit/gedit_highlight_python.png new file mode 100644 index 00000000..bed76058 Binary files /dev/null and b/needles/gnome/gedit/gedit_highlight_python.png differ diff --git a/needles/gnome/gedit/gedit_highlight_search.json b/needles/gnome/gedit/gedit_highlight_search.json new file mode 100644 index 00000000..4f8443ea --- /dev/null +++ b/needles/gnome/gedit/gedit_highlight_search.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_highlight_search" + ], + "area": [ + { + "xpos": 371, + "ypos": 207, + "width": 51, + "height": 22, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_highlight_search.png b/needles/gnome/gedit/gedit_highlight_search.png new file mode 100644 index 00000000..a0fb2595 Binary files /dev/null and b/needles/gnome/gedit/gedit_highlight_search.png differ diff --git a/needles/gnome/gedit/gedit_highlight_select.json b/needles/gnome/gedit/gedit_highlight_select.json new file mode 100644 index 00000000..27a9d799 --- /dev/null +++ b/needles/gnome/gedit/gedit_highlight_select.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_highlight_select" + ], + "area": [ + { + "xpos": 627, + "ypos": 154, + "width": 46, + "height": 21, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_highlight_select.png b/needles/gnome/gedit/gedit_highlight_select.png new file mode 100644 index 00000000..bb09a6dd Binary files /dev/null and b/needles/gnome/gedit/gedit_highlight_select.png differ diff --git a/needles/gnome/gedit/gedit_line_deleted.json b/needles/gnome/gedit/gedit_line_deleted.json new file mode 100644 index 00000000..7af432a2 --- /dev/null +++ b/needles/gnome/gedit/gedit_line_deleted.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_line_deleted" + ], + "area": [ + { + "xpos": 0, + "ypos": 77, + "width": 311, + "height": 245, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_line_deleted.png b/needles/gnome/gedit/gedit_line_deleted.png new file mode 100644 index 00000000..54eb8519 Binary files /dev/null and b/needles/gnome/gedit/gedit_line_deleted.png differ diff --git a/needles/gnome/gedit/gedit_line_highlighted.json b/needles/gnome/gedit/gedit_line_highlighted.json new file mode 100644 index 00000000..3e286168 --- /dev/null +++ b/needles/gnome/gedit/gedit_line_highlighted.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_line_highlighted" + ], + "area": [ + { + "xpos": 24, + "ypos": 200, + "width": 260, + "height": 18, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_line_highlighted.png b/needles/gnome/gedit/gedit_line_highlighted.png new file mode 100644 index 00000000..56b0b38a Binary files /dev/null and b/needles/gnome/gedit/gedit_line_highlighted.png differ diff --git a/needles/gnome/gedit/gedit_line_options.json b/needles/gnome/gedit/gedit_line_options.json new file mode 100644 index 00000000..88fc12ff --- /dev/null +++ b/needles/gnome/gedit/gedit_line_options.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_line_options" + ], + "area": [ + { + "xpos": 816, + "ypos": 745, + "width": 20, + "height": 19, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_line_options.png b/needles/gnome/gedit/gedit_line_options.png new file mode 100644 index 00000000..55081fae Binary files /dev/null and b/needles/gnome/gedit/gedit_line_options.png differ diff --git a/needles/gnome/gedit/gedit_line_reached.json b/needles/gnome/gedit/gedit_line_reached.json new file mode 100644 index 00000000..f61fe5c6 --- /dev/null +++ b/needles/gnome/gedit/gedit_line_reached.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_line_reached" + ], + "area": [ + { + "xpos": 818, + "ypos": 745, + "width": 32, + "height": 18, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_line_reached.png b/needles/gnome/gedit/gedit_line_reached.png new file mode 100644 index 00000000..80c3e33b Binary files /dev/null and b/needles/gnome/gedit/gedit_line_reached.png differ diff --git a/needles/gnome/gedit/gedit_line_returned.png b/needles/gnome/gedit/gedit_line_returned.png new file mode 100644 index 00000000..867e4a74 Binary files /dev/null and b/needles/gnome/gedit/gedit_line_returned.png differ diff --git a/needles/gnome/gedit/gedit_line_word.json b/needles/gnome/gedit/gedit_line_word.json new file mode 100644 index 00000000..97f926c8 --- /dev/null +++ b/needles/gnome/gedit/gedit_line_word.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_line_word" + ], + "area": [ + { + "xpos": 35, + "ypos": 167, + "width": 66, + "height": 14, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_line_word.png b/needles/gnome/gedit/gedit_line_word.png new file mode 100644 index 00000000..8b4493a7 Binary files /dev/null and b/needles/gnome/gedit/gedit_line_word.png differ diff --git a/needles/gnome/gedit/gedit_lines_numbered.json b/needles/gnome/gedit/gedit_lines_numbered.json new file mode 100644 index 00000000..436888ae --- /dev/null +++ b/needles/gnome/gedit/gedit_lines_numbered.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_lines_numbered" + ], + "area": [ + { + "xpos": 5, + "ypos": 77, + "width": 55, + "height": 33, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_lines_numbered.png b/needles/gnome/gedit/gedit_lines_numbered.png new file mode 100644 index 00000000..9928d8f5 Binary files /dev/null and b/needles/gnome/gedit/gedit_lines_numbered.png differ diff --git a/needles/gnome/gedit/gedit_margin_displayed.json b/needles/gnome/gedit/gedit_margin_displayed.json new file mode 100644 index 00000000..9d52239b --- /dev/null +++ b/needles/gnome/gedit/gedit_margin_displayed.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_margin_displayed" + ], + "area": [ + { + "xpos": 658, + "ypos": 240, + "width": 16, + "height": 81, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_margin_displayed.png b/needles/gnome/gedit/gedit_margin_displayed.png new file mode 100644 index 00000000..641ab67d Binary files /dev/null and b/needles/gnome/gedit/gedit_margin_displayed.png differ diff --git a/needles/gnome/gedit/gedit_menu_view.json b/needles/gnome/gedit/gedit_menu_view.json new file mode 100644 index 00000000..8429514d --- /dev/null +++ b/needles/gnome/gedit/gedit_menu_view.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_menu_view" + ], + "area": [ + { + "xpos": 780, + "ypos": 347, + "width": 43, + "height": 21, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_menu_view.png b/needles/gnome/gedit/gedit_menu_view.png new file mode 100644 index 00000000..d9ac5b0a Binary files /dev/null and b/needles/gnome/gedit/gedit_menu_view.png differ diff --git a/needles/gnome/gedit/gedit_misspelt_highlighted.json b/needles/gnome/gedit/gedit_misspelt_highlighted.json new file mode 100644 index 00000000..71bee3bd --- /dev/null +++ b/needles/gnome/gedit/gedit_misspelt_highlighted.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_misspelt_highlighted" + ], + "area": [ + { + "xpos": 175, + "ypos": 165, + "width": 48, + "height": 18, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_misspelt_highlighted.png b/needles/gnome/gedit/gedit_misspelt_highlighted.png new file mode 100644 index 00000000..44a200a5 Binary files /dev/null and b/needles/gnome/gedit/gedit_misspelt_highlighted.png differ diff --git a/needles/gnome/gedit/gedit_new_opened.json b/needles/gnome/gedit/gedit_new_opened.json new file mode 100644 index 00000000..a8c090aa --- /dev/null +++ b/needles/gnome/gedit/gedit_new_opened.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_new_opened" + ], + "area": [ + { + "xpos": 441, + "ypos": 40, + "width": 61, + "height": 20, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_new_opened.png b/needles/gnome/gedit/gedit_new_opened.png new file mode 100644 index 00000000..c89c2892 Binary files /dev/null and b/needles/gnome/gedit/gedit_new_opened.png differ diff --git a/needles/gnome/gedit/gedit_new_tab.json b/needles/gnome/gedit/gedit_new_tab.json new file mode 100644 index 00000000..08ff643f --- /dev/null +++ b/needles/gnome/gedit/gedit_new_tab.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_new_tab" + ], + "area": [ + { + "xpos": 104, + "ypos": 40, + "width": 23, + "height": 22, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_new_tab.png b/needles/gnome/gedit/gedit_new_tab.png new file mode 100644 index 00000000..7af1cea7 Binary files /dev/null and b/needles/gnome/gedit/gedit_new_tab.png differ diff --git a/needles/gnome/gedit/gedit_new_window.json b/needles/gnome/gedit/gedit_new_window.json new file mode 100644 index 00000000..9d3927bc --- /dev/null +++ b/needles/gnome/gedit/gedit_new_window.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_new_window" + ], + "area": [ + { + "xpos": 783, + "ypos": 144, + "width": 95, + "height": 22, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_new_window.png b/needles/gnome/gedit/gedit_new_window.png new file mode 100644 index 00000000..0bf7a28f Binary files /dev/null and b/needles/gnome/gedit/gedit_new_window.png differ diff --git a/needles/gnome/gedit/gedit_open.json b/needles/gnome/gedit/gedit_open.json new file mode 100644 index 00000000..6aa8a41d --- /dev/null +++ b/needles/gnome/gedit/gedit_open.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_open" + ], + "area": [ + { + "xpos": 19, + "ypos": 40, + "width": 66, + "height": 22, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_open.png b/needles/gnome/gedit/gedit_open.png new file mode 100644 index 00000000..f66274aa Binary files /dev/null and b/needles/gnome/gedit/gedit_open.png differ diff --git a/needles/gnome/gedit/gedit_replace.json b/needles/gnome/gedit/gedit_replace.json new file mode 100644 index 00000000..b8a590a7 --- /dev/null +++ b/needles/gnome/gedit/gedit_replace.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 223, + "ypos": 372, + "width": 77, + "height": 20, + "type": "match" + } + ], + "properties": [], + "tags": [ + "gedit_replace" + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_replace.png b/needles/gnome/gedit/gedit_replace.png new file mode 100644 index 00000000..4c01f309 Binary files /dev/null and b/needles/gnome/gedit/gedit_replace.png differ diff --git a/needles/gnome/gedit/gedit_replace_all.json b/needles/gnome/gedit/gedit_replace_all.json new file mode 100644 index 00000000..29af7223 --- /dev/null +++ b/needles/gnome/gedit/gedit_replace_all.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_replace_all" + ], + "area": [ + { + "xpos": 453, + "ypos": 526, + "width": 79, + "height": 18, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_replace_all.png b/needles/gnome/gedit/gedit_replace_all.png new file mode 100644 index 00000000..df1e8369 Binary files /dev/null and b/needles/gnome/gedit/gedit_replace_all.png differ diff --git a/needles/gnome/gedit/gedit_replace_nothing.json b/needles/gnome/gedit/gedit_replace_nothing.json new file mode 100644 index 00000000..7c1e4ab3 --- /dev/null +++ b/needles/gnome/gedit/gedit_replace_nothing.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 168, + "ypos": 190, + "width": 58, + "height": 21, + "type": "match" + } + ], + "properties": [], + "tags": [ + "gedit_replace_nothing" + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_replace_nothing.png b/needles/gnome/gedit/gedit_replace_nothing.png new file mode 100644 index 00000000..e7ea13ad Binary files /dev/null and b/needles/gnome/gedit/gedit_replace_nothing.png differ diff --git a/needles/gnome/gedit/gedit_side_panel.json b/needles/gnome/gedit/gedit_side_panel.json new file mode 100644 index 00000000..d6d3eea5 --- /dev/null +++ b/needles/gnome/gedit/gedit_side_panel.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_side_panel" + ], + "area": [ + { + "xpos": 785, + "ypos": 136, + "width": 73, + "height": 15, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_side_panel.png b/needles/gnome/gedit/gedit_side_panel.png new file mode 100644 index 00000000..d3a740fa Binary files /dev/null and b/needles/gnome/gedit/gedit_side_panel.png differ diff --git a/needles/gnome/gedit/gedit_sidepanel_on.json b/needles/gnome/gedit/gedit_sidepanel_on.json new file mode 100644 index 00000000..6a53b491 --- /dev/null +++ b/needles/gnome/gedit/gedit_sidepanel_on.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_sidepanel_on" + ], + "area": [ + { + "xpos": 22, + "ypos": 104, + "width": 140, + "height": 21, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_sidepanel_on.png b/needles/gnome/gedit/gedit_sidepanel_on.png new file mode 100644 index 00000000..a191c1da Binary files /dev/null and b/needles/gnome/gedit/gedit_sidepanel_on.png differ diff --git a/needles/gnome/gedit/gedit_spelling_change.json b/needles/gnome/gedit/gedit_spelling_change.json new file mode 100644 index 00000000..4aacc6ad --- /dev/null +++ b/needles/gnome/gedit/gedit_spelling_change.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_spelling_change" + ], + "area": [ + { + "xpos": 536, + "ypos": 442, + "width": 54, + "height": 19, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_spelling_change.png b/needles/gnome/gedit/gedit_spelling_change.png new file mode 100644 index 00000000..85f61d5f Binary files /dev/null and b/needles/gnome/gedit/gedit_spelling_change.png differ diff --git a/needles/gnome/gedit/gedit_spelling_changed.json b/needles/gnome/gedit/gedit_spelling_changed.json new file mode 100644 index 00000000..773ae679 --- /dev/null +++ b/needles/gnome/gedit/gedit_spelling_changed.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_spelling_changed" + ], + "area": [ + { + "xpos": 3, + "ypos": 164, + "width": 298, + "height": 17, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_spelling_changed.png b/needles/gnome/gedit/gedit_spelling_changed.png new file mode 100644 index 00000000..db43301c Binary files /dev/null and b/needles/gnome/gedit/gedit_spelling_changed.png differ diff --git a/needles/gnome/gedit/gedit_spelling_suggestion.json b/needles/gnome/gedit/gedit_spelling_suggestion.json new file mode 100644 index 00000000..588a54d2 --- /dev/null +++ b/needles/gnome/gedit/gedit_spelling_suggestion.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_spelling_suggestion" + ], + "area": [ + { + "xpos": 312, + "ypos": 472, + "width": 42, + "height": 22, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_spelling_suggestion.png b/needles/gnome/gedit/gedit_spelling_suggestion.png new file mode 100644 index 00000000..9c47da8e Binary files /dev/null and b/needles/gnome/gedit/gedit_spelling_suggestion.png differ diff --git a/needles/gnome/gedit/gedit_stats_shown.json b/needles/gnome/gedit/gedit_stats_shown.json new file mode 100644 index 00000000..5d41c2a2 --- /dev/null +++ b/needles/gnome/gedit/gedit_stats_shown.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_stats_shown" + ], + "area": [ + { + "xpos": 59, + "ypos": 186, + "width": 255, + "height": 21, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_stats_shown.png b/needles/gnome/gedit/gedit_stats_shown.png new file mode 100644 index 00000000..ef1c213b Binary files /dev/null and b/needles/gnome/gedit/gedit_stats_shown.png differ diff --git a/needles/gnome/gedit/gedit_switchoff.json b/needles/gnome/gedit/gedit_switchoff.json new file mode 100644 index 00000000..b648868a --- /dev/null +++ b/needles/gnome/gedit/gedit_switchoff.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_switchoff" + ], + "area": [ + { + "xpos": 983, + "ypos": 31, + "width": 37, + "height": 40, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_switchoff.png b/needles/gnome/gedit/gedit_switchoff.png new file mode 100644 index 00000000..4a75efcb Binary files /dev/null and b/needles/gnome/gedit/gedit_switchoff.png differ diff --git a/needles/gnome/gedit/gedit_tab_opened.json b/needles/gnome/gedit/gedit_tab_opened.json new file mode 100644 index 00000000..88db6fe2 --- /dev/null +++ b/needles/gnome/gedit/gedit_tab_opened.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_tab_opened" + ], + "area": [ + { + "xpos": 679, + "ypos": 81, + "width": 59, + "height": 36, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_tab_opened.png b/needles/gnome/gedit/gedit_tab_opened.png new file mode 100644 index 00000000..c33bf92d Binary files /dev/null and b/needles/gnome/gedit/gedit_tab_opened.png differ diff --git a/needles/gnome/gedit/gedit_text_added.json b/needles/gnome/gedit/gedit_text_added.json new file mode 100644 index 00000000..97f32c40 --- /dev/null +++ b/needles/gnome/gedit/gedit_text_added.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_text_added" + ], + "area": [ + { + "xpos": 0, + "ypos": 76, + "width": 322, + "height": 251, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_text_added.png b/needles/gnome/gedit/gedit_text_added.png new file mode 100644 index 00000000..42dfc6be Binary files /dev/null and b/needles/gnome/gedit/gedit_text_added.png differ diff --git a/needles/gnome/gedit/gedit_text_replaced.json b/needles/gnome/gedit/gedit_text_replaced.json new file mode 100644 index 00000000..dfd10ed5 --- /dev/null +++ b/needles/gnome/gedit/gedit_text_replaced.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_text_replaced" + ], + "area": [ + { + "xpos": 2, + "ypos": 166, + "width": 315, + "height": 15, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_text_replaced.png b/needles/gnome/gedit/gedit_text_replaced.png new file mode 100644 index 00000000..ec9fb660 Binary files /dev/null and b/needles/gnome/gedit/gedit_text_replaced.png differ diff --git a/needles/gnome/gedit/gedit_text_saved.json b/needles/gnome/gedit/gedit_text_saved.json new file mode 100644 index 00000000..ca7fb17a --- /dev/null +++ b/needles/gnome/gedit/gedit_text_saved.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_text_saved" + ], + "area": [ + { + "xpos": 480, + "ypos": 35, + "width": 66, + "height": 17, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_text_saved.png b/needles/gnome/gedit/gedit_text_saved.png new file mode 100644 index 00000000..b682834d Binary files /dev/null and b/needles/gnome/gedit/gedit_text_saved.png differ diff --git a/needles/gnome/gedit/gedit_textfield_focus.json b/needles/gnome/gedit/gedit_textfield_focus.json new file mode 100644 index 00000000..fa9b5ac4 --- /dev/null +++ b/needles/gnome/gedit/gedit_textfield_focus.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_textfield_focus" + ], + "area": [ + { + "xpos": 25, + "ypos": 63, + "width": 109, + "height": 123, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_textfield_focus.png b/needles/gnome/gedit/gedit_textfield_focus.png new file mode 100644 index 00000000..eb415cc3 Binary files /dev/null and b/needles/gnome/gedit/gedit_textfield_focus.png differ diff --git a/needles/gnome/gedit/gedit_tools.json b/needles/gnome/gedit/gedit_tools.json new file mode 100644 index 00000000..80dd6c92 --- /dev/null +++ b/needles/gnome/gedit/gedit_tools.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_tools" + ], + "area": [ + { + "xpos": 781, + "ypos": 375, + "width": 66, + "height": 20, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_tools.png b/needles/gnome/gedit/gedit_tools.png new file mode 100644 index 00000000..dbb502c8 Binary files /dev/null and b/needles/gnome/gedit/gedit_tools.png differ diff --git a/needles/gnome/gedit/gedit_tools_stats.json b/needles/gnome/gedit/gedit_tools_stats.json new file mode 100644 index 00000000..dd22c642 --- /dev/null +++ b/needles/gnome/gedit/gedit_tools_stats.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gedit_tools_stats" + ], + "area": [ + { + "xpos": 856, + "ypos": 245, + "width": 64, + "height": 20, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gedit/gedit_tools_stats.png b/needles/gnome/gedit/gedit_tools_stats.png new file mode 100644 index 00000000..a64fb97f Binary files /dev/null and b/needles/gnome/gedit/gedit_tools_stats.png differ diff --git a/needles/gnome/gnome_burger_menu.json b/needles/gnome/gnome_burger_menu.json new file mode 100644 index 00000000..0b69d145 --- /dev/null +++ b/needles/gnome/gnome_burger_menu.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gnome_burger_menu" + ], + "area": [ + { + "xpos": 944, + "ypos": 40, + "width": 19, + "height": 21, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gnome_burger_menu.png b/needles/gnome/gnome_burger_menu.png new file mode 100644 index 00000000..efe3b346 Binary files /dev/null and b/needles/gnome/gnome_burger_menu.png differ diff --git a/needles/gnome/gnome_save.json b/needles/gnome/gnome_save.json new file mode 100644 index 00000000..9aa96429 --- /dev/null +++ b/needles/gnome/gnome_save.json @@ -0,0 +1,15 @@ +{ + "properties": [], + "tags": [ + "gnome_save" + ], + "area": [ + { + "xpos": 879, + "ypos": 42, + "width": 36, + "height": 18, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/gnome_save.png b/needles/gnome/gnome_save.png new file mode 100644 index 00000000..3c2e6674 Binary files /dev/null and b/needles/gnome/gnome_save.png differ diff --git a/q b/q new file mode 100644 index 00000000..7d57ac8d --- /dev/null +++ b/q @@ -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"; diff --git a/tests/apptests/apptest_gedit.pm b/tests/apptests/apptest_gedit.pm new file mode 100644 index 00000000..9d47b39f --- /dev/null +++ b/tests/apptests/apptest_gedit.pm @@ -0,0 +1,327 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; +use applications; + +# This test tests the basic functionality of Gedit. + +# ================= BASIC METHODS =================== + +sub start { + send_key "super"; + type_very_safely "gedit"; + send_key "ret"; +} + +sub stop { + send_key "alt-f4"; +} + +sub open_menu { + assert_and_click "gnome-burger-menu"; + wait_still_screen 2; +} + +sub open_submenu_view { + assert_and_click "gedit_submenu_view"; + wait_still_screen 2; +} + +sub open_submenu_tools { + assert_and_click "gedit_submenu_tools"; + wait_still_screen 2; +} + +# ================= SPECIFIC METHODS ================ + +sub about { + # About screen can be displayed. + open_menu(); + assert_and_click "gedit_about"; + assert_screen "gedit_about_shown"; + send_key "esc"; + # Floating windows do not return focus to the text field, tab does in + # case something like that happens. + send_key "tab"; +} + +sub enter_text { + # Writes text into a window. + my $text = "Hope is the thing with feathers - \nThat perches in the soul -\nAnd sings the tune without the words -\nAnd never stops - at all -\n\nAnd sweetest - in the Gale - is heard -\nAnd sore must be the storm -\nThat could abash the little Bird\nThat kept so many warm -\n\nI've heard it in the chillest land -\nAnd on the strangest Sea -\nYet - never - in Extremity,\nIt asked a crumb - of me.\n\n"; + type_safely $text; + assert_screen "gedit_text_added"; +} + +sub enter_code { + # Write some python code to test syntax highlighting. + my $text = "#!/usr/bin/python\n\nfor num in range(100):\n\tprint('This is line number:')\n\tprint(num)\n"; + type_safely $text; + assert_screen "gedit_code_added"; +} + +sub save_file { + # Application can save file + assert_and_click "gnome_save"; + type_safely "poem.txt"; + send_key "ret"; + assert_screen "gedit_text_saved"; +} + +sub delete_line { + # Some text can be deleted. + assert_and_click "gedit_line_word"; + send_key "home"; + send_key "shift-end"; + send_key "delete"; + send_key "ctrl-end"; + assert_screen "gedit_line_deleted"; +} + +sub history { + # History can be used. + send_key "ctrl-z"; + send_key "ctrl-end"; + assert_screen "gedit_text_added"; +} + +sub display_stats { + # Statistics can be displayed. + open_menu(); + open_submenu_tools(); + assert_and_click "gedit_tools_stats"; + assert_screen "gedit_stats_shown"; + send_key "esc"; + # Floating windows do not return focus to the text field, tab does. + send_key "tab"; +} + +sub open_file { + # Opens file from the list of saved files. This will not test to + # open a file using the standard Gnome dialogue. + assert_and_click "gedit_open"; + assert_and_click "gedit_choose_file"; + assert_screen "gedit_text_added"; +} + +sub find_text { + # Searches the file to find a word. + send_key "ctrl-f"; + type_safely "sweetest"; + send_key "ret"; + # The found item is blue at first and after any action it changes to yellow. Let's move the cursor to + # change it into yellow for assertion. + send_key "left"; + assert_screen "gedit_found_text"; +} + +sub find_and_replace { + # Replaces one word for another + send_key "ctrl-h"; + type_safely "Gale"; + assert_and_click "gedit_replace_nothing"; + type_safely "Wiend"; # We produce a typo to check the spellchecker + assert_and_click "gedit_find"; + assert_and_click "gedit_replace"; + # Move out the floating window and put cursor at the end. + assert_and_click "gedit_switchoff"; + assert_screen "gedit_text_replaced"; +} + +sub clear_highlight { + # This tests that a highlight can be removed from a search result. + open_menu(); + assert_and_click "gedit_clear_highlight"; + # Move cursor out of text. + send_key "ctrl-end"; + assert_screen "gedit_text_added"; +} + +sub line_numbers { + # Switches on line numbering. + assert_and_click "gedit_line_options"; + assert_and_click "gedit_display_linenumbers"; + send_key "esc"; + assert_screen "gedit_lines_numbered"; +} + +sub goto_line { + # Uses the menu to go to a specific line. + open_menu(); + assert_and_click "gedit_goto_line"; + type_safely "8\n"; + assert_screen "gedit_line_reached"; +} + +sub highlight_line { + # Highlights the current line. + assert_and_click "gedit_line_options"; + assert_and_click "gedit_highlight_current"; + send_key "esc"; + assert_screen "gedit_line_highlighted"; +} + +sub display_margin { + # Displays the right margine to monitor the file width. + assert_and_click "gedit_line_options"; + assert_and_click "gedit_display_margin"; + send_key "esc"; + assert_screen "gedit_margin_displayed" +} + +sub new_tab { + # Uses the new tab button to open a new tab + assert_and_click "gedit_new_tab"; + assert_screen "gedit_tab_opened"; + send_key "ctrl-w"; +} + +sub new_window { + open_menu(); + assert_and_click "gedit_new_window"; + assert_screen "gedit_new_opened"; +} + +sub side_panel { + open_menu(); + open_submenu_view(); + assert_and_click "gedit_side_panel"; + send_key "esc"; + assert_screen "gedit_sidepanel_on"; +} + +sub bottom_panel { + open_menu(); + open_submenu_view(); + assert_and_click "gedit_botton_panel"; + send_key "esc"; + assert_screen "gedit_bottompanel_on"; +} + +sub spellcheck { + open_menu(); + open_submenu_tools(); + assert_and_click "gedit_check_spelling"; + assert_and_click "gedit_spelling_suggestion"; + assert_and_click "gedit_spelling_change"; + send_key "esc"; + assert_and_click "gedit_spelling_changed"; +} + +sub highlight_misspelt_words { + open_menu(); + open_submenu_tools(); + assert_and_click "gedit_highlight_misspelt"; + send_key "esc"; + assert_and_click "gedit_misspelt_highlighted"; +} + +sub code_highlighting { + assert_and_click "select_highlighting"; + type_very_safely "python"; + send_key "ret"; + assert_screen "code_highlighted"; +} + +sub close_without_saving { + assert_and_click "gedit_close_without_saving"; +} + +# TBD: +# Tools - Check spelling +# Tools - Misspelled words +# Insert Date and Time + + + +# ================= TEST ROUTINE =================== +sub run { + my $self = shift; + + # Start the application + start(); + + # Test the About menu + about(); + + # Enter text + enter_text(); + + # Delete line + delete_line(); + + # Use history to undelete the line again + history(); + + # Save the text into a file + save_file(); + + # Use Statistics menu + display_stats(); + + # Find a piece of text + find_text(); + + # Clear the highlighted background + clear_highlight(); + + # Find and replace a word + find_and_replace; + + # Highlight misspellt words using the menu + highlight_misspelt_words(); + + # Checkspelling of the text + spellcheck(); + + # View the sidepanel + side_panel(); + + # Switch off the application. + stop(); + + # Start anew and open the saved file. + start(); + open_file(); + + # Switch on line numbering + line_numbers(); + + # Go to a certain line + goto_line(); + + # Highlight selected line + highlight_line(); + + # Switch on display margin + display_margin(); + + # Switch on bottom panel + bottom_panel(); + + # Create a new document tab + new_tab(); + + # Open a new window + new_window(); + + # Enter some python code + enter_code(); + + # Select highlighting + code_highlighting(); + + # Stop this new instance + stop(); + + # Switch off the application + stop(); +} + +sub test_flags { + return { fatal => 1 }; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/apptests/gedit.pm b/tests/apptests/gedit.pm new file mode 100644 index 00000000..9d47b39f --- /dev/null +++ b/tests/apptests/gedit.pm @@ -0,0 +1,327 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; +use applications; + +# This test tests the basic functionality of Gedit. + +# ================= BASIC METHODS =================== + +sub start { + send_key "super"; + type_very_safely "gedit"; + send_key "ret"; +} + +sub stop { + send_key "alt-f4"; +} + +sub open_menu { + assert_and_click "gnome-burger-menu"; + wait_still_screen 2; +} + +sub open_submenu_view { + assert_and_click "gedit_submenu_view"; + wait_still_screen 2; +} + +sub open_submenu_tools { + assert_and_click "gedit_submenu_tools"; + wait_still_screen 2; +} + +# ================= SPECIFIC METHODS ================ + +sub about { + # About screen can be displayed. + open_menu(); + assert_and_click "gedit_about"; + assert_screen "gedit_about_shown"; + send_key "esc"; + # Floating windows do not return focus to the text field, tab does in + # case something like that happens. + send_key "tab"; +} + +sub enter_text { + # Writes text into a window. + my $text = "Hope is the thing with feathers - \nThat perches in the soul -\nAnd sings the tune without the words -\nAnd never stops - at all -\n\nAnd sweetest - in the Gale - is heard -\nAnd sore must be the storm -\nThat could abash the little Bird\nThat kept so many warm -\n\nI've heard it in the chillest land -\nAnd on the strangest Sea -\nYet - never - in Extremity,\nIt asked a crumb - of me.\n\n"; + type_safely $text; + assert_screen "gedit_text_added"; +} + +sub enter_code { + # Write some python code to test syntax highlighting. + my $text = "#!/usr/bin/python\n\nfor num in range(100):\n\tprint('This is line number:')\n\tprint(num)\n"; + type_safely $text; + assert_screen "gedit_code_added"; +} + +sub save_file { + # Application can save file + assert_and_click "gnome_save"; + type_safely "poem.txt"; + send_key "ret"; + assert_screen "gedit_text_saved"; +} + +sub delete_line { + # Some text can be deleted. + assert_and_click "gedit_line_word"; + send_key "home"; + send_key "shift-end"; + send_key "delete"; + send_key "ctrl-end"; + assert_screen "gedit_line_deleted"; +} + +sub history { + # History can be used. + send_key "ctrl-z"; + send_key "ctrl-end"; + assert_screen "gedit_text_added"; +} + +sub display_stats { + # Statistics can be displayed. + open_menu(); + open_submenu_tools(); + assert_and_click "gedit_tools_stats"; + assert_screen "gedit_stats_shown"; + send_key "esc"; + # Floating windows do not return focus to the text field, tab does. + send_key "tab"; +} + +sub open_file { + # Opens file from the list of saved files. This will not test to + # open a file using the standard Gnome dialogue. + assert_and_click "gedit_open"; + assert_and_click "gedit_choose_file"; + assert_screen "gedit_text_added"; +} + +sub find_text { + # Searches the file to find a word. + send_key "ctrl-f"; + type_safely "sweetest"; + send_key "ret"; + # The found item is blue at first and after any action it changes to yellow. Let's move the cursor to + # change it into yellow for assertion. + send_key "left"; + assert_screen "gedit_found_text"; +} + +sub find_and_replace { + # Replaces one word for another + send_key "ctrl-h"; + type_safely "Gale"; + assert_and_click "gedit_replace_nothing"; + type_safely "Wiend"; # We produce a typo to check the spellchecker + assert_and_click "gedit_find"; + assert_and_click "gedit_replace"; + # Move out the floating window and put cursor at the end. + assert_and_click "gedit_switchoff"; + assert_screen "gedit_text_replaced"; +} + +sub clear_highlight { + # This tests that a highlight can be removed from a search result. + open_menu(); + assert_and_click "gedit_clear_highlight"; + # Move cursor out of text. + send_key "ctrl-end"; + assert_screen "gedit_text_added"; +} + +sub line_numbers { + # Switches on line numbering. + assert_and_click "gedit_line_options"; + assert_and_click "gedit_display_linenumbers"; + send_key "esc"; + assert_screen "gedit_lines_numbered"; +} + +sub goto_line { + # Uses the menu to go to a specific line. + open_menu(); + assert_and_click "gedit_goto_line"; + type_safely "8\n"; + assert_screen "gedit_line_reached"; +} + +sub highlight_line { + # Highlights the current line. + assert_and_click "gedit_line_options"; + assert_and_click "gedit_highlight_current"; + send_key "esc"; + assert_screen "gedit_line_highlighted"; +} + +sub display_margin { + # Displays the right margine to monitor the file width. + assert_and_click "gedit_line_options"; + assert_and_click "gedit_display_margin"; + send_key "esc"; + assert_screen "gedit_margin_displayed" +} + +sub new_tab { + # Uses the new tab button to open a new tab + assert_and_click "gedit_new_tab"; + assert_screen "gedit_tab_opened"; + send_key "ctrl-w"; +} + +sub new_window { + open_menu(); + assert_and_click "gedit_new_window"; + assert_screen "gedit_new_opened"; +} + +sub side_panel { + open_menu(); + open_submenu_view(); + assert_and_click "gedit_side_panel"; + send_key "esc"; + assert_screen "gedit_sidepanel_on"; +} + +sub bottom_panel { + open_menu(); + open_submenu_view(); + assert_and_click "gedit_botton_panel"; + send_key "esc"; + assert_screen "gedit_bottompanel_on"; +} + +sub spellcheck { + open_menu(); + open_submenu_tools(); + assert_and_click "gedit_check_spelling"; + assert_and_click "gedit_spelling_suggestion"; + assert_and_click "gedit_spelling_change"; + send_key "esc"; + assert_and_click "gedit_spelling_changed"; +} + +sub highlight_misspelt_words { + open_menu(); + open_submenu_tools(); + assert_and_click "gedit_highlight_misspelt"; + send_key "esc"; + assert_and_click "gedit_misspelt_highlighted"; +} + +sub code_highlighting { + assert_and_click "select_highlighting"; + type_very_safely "python"; + send_key "ret"; + assert_screen "code_highlighted"; +} + +sub close_without_saving { + assert_and_click "gedit_close_without_saving"; +} + +# TBD: +# Tools - Check spelling +# Tools - Misspelled words +# Insert Date and Time + + + +# ================= TEST ROUTINE =================== +sub run { + my $self = shift; + + # Start the application + start(); + + # Test the About menu + about(); + + # Enter text + enter_text(); + + # Delete line + delete_line(); + + # Use history to undelete the line again + history(); + + # Save the text into a file + save_file(); + + # Use Statistics menu + display_stats(); + + # Find a piece of text + find_text(); + + # Clear the highlighted background + clear_highlight(); + + # Find and replace a word + find_and_replace; + + # Highlight misspellt words using the menu + highlight_misspelt_words(); + + # Checkspelling of the text + spellcheck(); + + # View the sidepanel + side_panel(); + + # Switch off the application. + stop(); + + # Start anew and open the saved file. + start(); + open_file(); + + # Switch on line numbering + line_numbers(); + + # Go to a certain line + goto_line(); + + # Highlight selected line + highlight_line(); + + # Switch on display margin + display_margin(); + + # Switch on bottom panel + bottom_panel(); + + # Create a new document tab + new_tab(); + + # Open a new window + new_window(); + + # Enter some python code + enter_code(); + + # Select highlighting + code_highlighting(); + + # Stop this new instance + stop(); + + # Switch off the application + stop(); +} + +sub test_flags { + return { fatal => 1 }; +} + +1; + +# vim: set sw=4 et: