diff --git a/check-needles.py b/check-needles.py index f00c2fba..4c2c5e22 100755 --- a/check-needles.py +++ b/check-needles.py @@ -170,9 +170,11 @@ for button in ("div", "divider", "zero", "one", "two", "three", "four", "five", "six","seven", "eight", "nine", "mod", "percent", "pi", "root", "square", "sub"): testtags.append(f"calc_button_{button}") + testtags.append(f"kcalc_button_{button}") for result in ("BokZw", "Czo4s", "O9qsL", "WIxiR", "b5y2B", "h7MfO", "qxuBK", "tWshx", "uC8Ul", "3LAG3"): testtags.append(f"calc_result_{result}") + testtags.append(f"kcalc_result_{result}") # Needles for Contacts for hashname in ("jlJmL", "7XGzO", "ps61y", "OvXj~", "GqYOp", "VEFrP"): testtags.append(f"contacts_name_{hashname}") diff --git a/needles/kde/apps/kcalc/about-kcalc_about_shown-20241113.json b/needles/kde/apps/kcalc/about-kcalc_about_shown-20241113.json new file mode 100644 index 00000000..5ddb53d2 --- /dev/null +++ b/needles/kde/apps/kcalc/about-kcalc_about_shown-20241113.json @@ -0,0 +1,22 @@ +{ + "area": [ + { + "xpos": 404, + "ypos": 223, + "width": 51, + "height": 24, + "type": "match" + }, + { + "xpos": 362, + "ypos": 273, + "width": 56, + "height": 27, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_about_shown" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/about-kcalc_about_shown-20241113.png b/needles/kde/apps/kcalc/about-kcalc_about_shown-20241113.png new file mode 100644 index 00000000..cb6b5dc7 Binary files /dev/null and b/needles/kde/apps/kcalc/about-kcalc_about_shown-20241113.png differ diff --git a/needles/kde/apps/kcalc/about-kcalc_authors-20241113.json b/needles/kde/apps/kcalc/about-kcalc_authors-20241113.json new file mode 100644 index 00000000..5eeb96b4 --- /dev/null +++ b/needles/kde/apps/kcalc/about-kcalc_authors-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 542, + "ypos": 281, + "width": 48, + "height": 16, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_authors" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/about-kcalc_authors-20241113.png b/needles/kde/apps/kcalc/about-kcalc_authors-20241113.png new file mode 100644 index 00000000..a3feff38 Binary files /dev/null and b/needles/kde/apps/kcalc/about-kcalc_authors-20241113.png differ diff --git a/needles/kde/apps/kcalc/about-kcalc_authors_shown-20241113.json b/needles/kde/apps/kcalc/about-kcalc_authors_shown-20241113.json new file mode 100644 index 00000000..46475b3b --- /dev/null +++ b/needles/kde/apps/kcalc/about-kcalc_authors_shown-20241113.json @@ -0,0 +1,22 @@ +{ + "area": [ + { + "xpos": 358, + "ypos": 348, + "width": 136, + "height": 25, + "type": "match" + }, + { + "xpos": 362, + "ypos": 416, + "width": 169, + "height": 20, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_authors_shown" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/about-kcalc_authors_shown-20241113.png b/needles/kde/apps/kcalc/about-kcalc_authors_shown-20241113.png new file mode 100644 index 00000000..0b4c9220 Binary files /dev/null and b/needles/kde/apps/kcalc/about-kcalc_authors_shown-20241113.png differ diff --git a/needles/kde/apps/kcalc/about-kcalc_submenu_about-20241113.json b/needles/kde/apps/kcalc/about-kcalc_submenu_about-20241113.json new file mode 100644 index 00000000..d63d504c --- /dev/null +++ b/needles/kde/apps/kcalc/about-kcalc_submenu_about-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 360, + "ypos": 325, + "width": 95, + "height": 15, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_submenu_about" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/about-kcalc_submenu_about-20241113.png b/needles/kde/apps/kcalc/about-kcalc_submenu_about-20241113.png new file mode 100644 index 00000000..c2b721fc Binary files /dev/null and b/needles/kde/apps/kcalc/about-kcalc_submenu_about-20241113.png differ diff --git a/needles/kde/apps/kcalc/about-kde_mainmenu_help-20241113.json b/needles/kde/apps/kcalc/about-kde_mainmenu_help-20241113.json new file mode 100644 index 00000000..4e6deef2 --- /dev/null +++ b/needles/kde/apps/kcalc/about-kde_mainmenu_help-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 353, + "ypos": 140, + "width": 36, + "height": 21, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kde_mainmenu_help" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/about-kde_mainmenu_help-20241113.png b/needles/kde/apps/kcalc/about-kde_mainmenu_help-20241113.png new file mode 100644 index 00000000..011cd3d6 Binary files /dev/null and b/needles/kde/apps/kcalc/about-kde_mainmenu_help-20241113.png differ diff --git a/needles/kde/apps/kcalc/help-kcalc_help_shown-20241113.json b/needles/kde/apps/kcalc/help-kcalc_help_shown-20241113.json new file mode 100644 index 00000000..c71be64a --- /dev/null +++ b/needles/kde/apps/kcalc/help-kcalc_help_shown-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 350, + "ypos": 170, + "width": 200, + "height": 24, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_help_shown" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/help-kcalc_help_shown-20241113.png b/needles/kde/apps/kcalc/help-kcalc_help_shown-20241113.png new file mode 100644 index 00000000..ace93ae0 Binary files /dev/null and b/needles/kde/apps/kcalc/help-kcalc_help_shown-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_add-20241113.json b/needles/kde/apps/kcalc/kcalc_button_add-20241113.json new file mode 100644 index 00000000..b098a723 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_add-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 551, + "ypos": 394, + "width": 21, + "height": 24, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_add" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_add-20241113.png b/needles/kde/apps/kcalc/kcalc_button_add-20241113.png new file mode 100644 index 00000000..ea1fd277 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_add-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_bclose-20241113.json b/needles/kde/apps/kcalc/kcalc_button_bclose-20241113.json new file mode 100644 index 00000000..285a5e0c --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_bclose-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 714, + "ypos": 489, + "width": 17, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_bclose" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_bclose-20241113.png b/needles/kde/apps/kcalc/kcalc_button_bclose-20241113.png new file mode 100644 index 00000000..3741ca5b Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_bclose-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_bopen-20241113.json b/needles/kde/apps/kcalc/kcalc_button_bopen-20241113.json new file mode 100644 index 00000000..874f404b --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_bopen-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 713, + "ypos": 425, + "width": 17, + "height": 28, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_bopen" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_bopen-20241113.png b/needles/kde/apps/kcalc/kcalc_button_bopen-20241113.png new file mode 100644 index 00000000..ccd9f4ff Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_bopen-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_div-20241113.json b/needles/kde/apps/kcalc/kcalc_button_div-20241113.json new file mode 100644 index 00000000..256dd9d9 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_div-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 344, + "ypos": 309, + "width": 22, + "height": 19, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_div" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_div-20241113.png b/needles/kde/apps/kcalc/kcalc_button_div-20241113.png new file mode 100644 index 00000000..157bd319 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_div-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_divider-20241113.json b/needles/kde/apps/kcalc/kcalc_button_divider-20241113.json new file mode 100644 index 00000000..638f36c9 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_divider-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 346, + "ypos": 309, + "width": 17, + "height": 17, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_divider" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_divider-20241113.png b/needles/kde/apps/kcalc/kcalc_button_divider-20241113.png new file mode 100644 index 00000000..b90f6de4 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_divider-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_eight-20241113.json b/needles/kde/apps/kcalc/kcalc_button_eight-20241113.json new file mode 100644 index 00000000..6d644f0f --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_eight-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 340, + "ypos": 364, + "width": 25, + "height": 25, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_eight" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_eight-20241113.png b/needles/kde/apps/kcalc/kcalc_button_eight-20241113.png new file mode 100644 index 00000000..7448c15c Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_eight-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_equals-20241113.json b/needles/kde/apps/kcalc/kcalc_button_equals-20241113.json new file mode 100644 index 00000000..bf98c112 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_equals-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 552, + "ypos": 515, + "width": 19, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_equals" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_equals-20241113.png b/needles/kde/apps/kcalc/kcalc_button_equals-20241113.png new file mode 100644 index 00000000..e6421f0e Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_equals-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_five-20241113.json b/needles/kde/apps/kcalc/kcalc_button_five-20241113.json new file mode 100644 index 00000000..8f1f99ef --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_five-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 344, + "ypos": 425, + "width": 22, + "height": 24, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_five" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_five-20241113.png b/needles/kde/apps/kcalc/kcalc_button_five-20241113.png new file mode 100644 index 00000000..23d941c3 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_five-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_four-20241113.json b/needles/kde/apps/kcalc/kcalc_button_four-20241113.json new file mode 100644 index 00000000..b06ded04 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_four-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 238, + "ypos": 426, + "width": 25, + "height": 20, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_four" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_four-20241113.png b/needles/kde/apps/kcalc/kcalc_button_four-20241113.png new file mode 100644 index 00000000..d6d466f0 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_four-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_multi-20241113.json b/needles/kde/apps/kcalc/kcalc_button_multi-20241113.json new file mode 100644 index 00000000..0fdb41a4 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_multi-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 447, + "ypos": 309, + "width": 23, + "height": 21, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_multi" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_multi-20241113.png b/needles/kde/apps/kcalc/kcalc_button_multi-20241113.png new file mode 100644 index 00000000..2ef34a7c Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_multi-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_nine-20241113.json b/needles/kde/apps/kcalc/kcalc_button_nine-20241113.json new file mode 100644 index 00000000..1decb565 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_nine-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 446, + "ypos": 366, + "width": 22, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_nine" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_nine-20241113.png b/needles/kde/apps/kcalc/kcalc_button_nine-20241113.png new file mode 100644 index 00000000..54e3d84f Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_nine-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_one-20241113.json b/needles/kde/apps/kcalc/kcalc_button_one-20241113.json new file mode 100644 index 00000000..e3abbaa7 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_one-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 241, + "ypos": 486, + "width": 18, + "height": 20, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_one" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_one-20241113.png b/needles/kde/apps/kcalc/kcalc_button_one-20241113.png new file mode 100644 index 00000000..607da092 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_one-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_percent-20241113.json b/needles/kde/apps/kcalc/kcalc_button_percent-20241113.json new file mode 100644 index 00000000..3035ce2d --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_percent-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 237, + "ypos": 304, + "width": 25, + "height": 25, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_percent" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_percent-20241113.png b/needles/kde/apps/kcalc/kcalc_button_percent-20241113.png new file mode 100644 index 00000000..2c3e56cc Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_percent-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_seven-20241113.json b/needles/kde/apps/kcalc/kcalc_button_seven-20241113.json new file mode 100644 index 00000000..2a89b344 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_seven-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 241, + "ypos": 365, + "width": 19, + "height": 24, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_seven" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_seven-20241113.png b/needles/kde/apps/kcalc/kcalc_button_seven-20241113.png new file mode 100644 index 00000000..e0593ce7 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_seven-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_six-20241113.json b/needles/kde/apps/kcalc/kcalc_button_six-20241113.json new file mode 100644 index 00000000..39f57ef5 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_six-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 446, + "ypos": 423, + "width": 21, + "height": 26, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_six" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_six-20241113.png b/needles/kde/apps/kcalc/kcalc_button_six-20241113.png new file mode 100644 index 00000000..0cc20347 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_six-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_sub-20241113.json b/needles/kde/apps/kcalc/kcalc_button_sub-20241113.json new file mode 100644 index 00000000..d433acd0 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_sub-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 550, + "ypos": 310, + "width": 22, + "height": 16, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_sub" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_sub-20241113.png b/needles/kde/apps/kcalc/kcalc_button_sub-20241113.png new file mode 100644 index 00000000..71f56923 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_sub-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_three-20241113.json b/needles/kde/apps/kcalc/kcalc_button_three-20241113.json new file mode 100644 index 00000000..62ceb294 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_three-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 446, + "ypos": 483, + "width": 20, + "height": 25, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_three" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_three-20241113.png b/needles/kde/apps/kcalc/kcalc_button_three-20241113.png new file mode 100644 index 00000000..4639f81d Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_three-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_two-20241113.json b/needles/kde/apps/kcalc/kcalc_button_two-20241113.json new file mode 100644 index 00000000..0f412745 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_two-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 344, + "ypos": 485, + "width": 19, + "height": 20, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_two" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_two-20241113.png b/needles/kde/apps/kcalc/kcalc_button_two-20241113.png new file mode 100644 index 00000000..3f37e32e Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_two-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_button_zero-20241113.json b/needles/kde/apps/kcalc/kcalc_button_zero-20241113.json new file mode 100644 index 00000000..a9e13bf0 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_button_zero-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 292, + "ypos": 546, + "width": 19, + "height": 19, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_button_zero" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_button_zero-20241113.png b/needles/kde/apps/kcalc/kcalc_button_zero-20241113.png new file mode 100644 index 00000000..01b425ba Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_button_zero-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_result_3LAG3-20241113.json b/needles/kde/apps/kcalc/kcalc_result_3LAG3-20241113.json new file mode 100644 index 00000000..3d22c839 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_result_3LAG3-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 798, + "ypos": 184, + "width": 25, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_result_3LAG3" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_result_3LAG3-20241113.png b/needles/kde/apps/kcalc/kcalc_result_3LAG3-20241113.png new file mode 100644 index 00000000..7aa8f13e Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_result_3LAG3-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_result_Czo4s-20241113.json b/needles/kde/apps/kcalc/kcalc_result_Czo4s-20241113.json new file mode 100644 index 00000000..47da75c6 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_result_Czo4s-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 795, + "ypos": 185, + "width": 27, + "height": 21, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_result_Czo4s" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_result_Czo4s-20241113.png b/needles/kde/apps/kcalc/kcalc_result_Czo4s-20241113.png new file mode 100644 index 00000000..fa2c5b41 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_result_Czo4s-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_result_b5y2B-20241113.json b/needles/kde/apps/kcalc/kcalc_result_b5y2B-20241113.json new file mode 100644 index 00000000..cd14de40 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_result_b5y2B-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 786, + "ypos": 186, + "width": 35, + "height": 19, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_result_b5y2B" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_result_b5y2B-20241113.png b/needles/kde/apps/kcalc/kcalc_result_b5y2B-20241113.png new file mode 100644 index 00000000..9f796f68 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_result_b5y2B-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_result_h7MfO-20241113.json b/needles/kde/apps/kcalc/kcalc_result_h7MfO-20241113.json new file mode 100644 index 00000000..cbb1eef0 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_result_h7MfO-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 800, + "ypos": 187, + "width": 24, + "height": 18, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_result_h7MfO" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_result_h7MfO-20241113.png b/needles/kde/apps/kcalc/kcalc_result_h7MfO-20241113.png new file mode 100644 index 00000000..d18c50a5 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_result_h7MfO-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_result_tWshx-20241113.json b/needles/kde/apps/kcalc/kcalc_result_tWshx-20241113.json new file mode 100644 index 00000000..233697f5 --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_result_tWshx-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 799, + "ypos": 188, + "width": 23, + "height": 17, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_result_tWshx" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_result_tWshx-20241113.png b/needles/kde/apps/kcalc/kcalc_result_tWshx-20241113.png new file mode 100644 index 00000000..5f909e17 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_result_tWshx-20241113.png differ diff --git a/needles/kde/apps/kcalc/kcalc_result_uC8Ul-20241113.json b/needles/kde/apps/kcalc/kcalc_result_uC8Ul-20241113.json new file mode 100644 index 00000000..cd69809e --- /dev/null +++ b/needles/kde/apps/kcalc/kcalc_result_uC8Ul-20241113.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 804, + "ypos": 184, + "width": 22, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "kcalc_result_uC8Ul" + ] +} \ No newline at end of file diff --git a/needles/kde/apps/kcalc/kcalc_result_uC8Ul-20241113.png b/needles/kde/apps/kcalc/kcalc_result_uC8Ul-20241113.png new file mode 100644 index 00000000..3d69a224 Binary files /dev/null and b/needles/kde/apps/kcalc/kcalc_result_uC8Ul-20241113.png differ diff --git a/templates.fif.json b/templates.fif.json index 82f02218..43b55254 100644 --- a/templates.fif.json +++ b/templates.fif.json @@ -1269,6 +1269,17 @@ "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%" } }, + "kcalc": { + "profiles": { + "fedora-KDE-live-iso-x86_64-*-64bit": 30 + }, + "settings": { + "BOOTFROM": "c", + "HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2", + "POSTINSTALL_PATH": "tests/applications/kcalc", + "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%" + } + }, "maps": { "profiles": { "fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50, diff --git a/tests/applications/kcalc/aaa_setup.pm b/tests/applications/kcalc/aaa_setup.pm new file mode 100644 index 00000000..8001092e --- /dev/null +++ b/tests/applications/kcalc/aaa_setup.pm @@ -0,0 +1,26 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script starts the KCalc application +# and saves the milestone for the consequtive +# tests. + +sub run { + my $self = shift; + # Run the application + menu_launch_type("kcalc"); + assert_screen("kcalc_runs"); + # wait for system to settle before snapshotting + sleep 10; +} + +sub test_flags { + return {fatal => 1, milestone => 1}; +} + +1; + +# vim: set sw=4 et: + diff --git a/tests/applications/kcalc/about.pm b/tests/applications/kcalc/about.pm new file mode 100644 index 00000000..850595b5 --- /dev/null +++ b/tests/applications/kcalc/about.pm @@ -0,0 +1,31 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script checks that Gnome Calculator shows About. + +sub run { + my $self = shift; + # Let's wait until everything settles down properly + # before we start testing. + sleep 5; + # Open the menu and click on the About item. + assert_and_click("kde_mainmenu_help"); + wait_still_screen(2); + assert_and_click("kcalc_submenu_about"); + # Check that it is shown. + assert_screen("kcalc_about_shown"); + # Click on the Credits button and check that it shows. + assert_and_click("kcalc_authors"); + assert_screen("kcalc_authors_shown"); +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: + diff --git a/tests/applications/kcalc/help.pm b/tests/applications/kcalc/help.pm new file mode 100644 index 00000000..8a3f83a2 --- /dev/null +++ b/tests/applications/kcalc/help.pm @@ -0,0 +1,30 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script checks that Gnome Calculator shows help. + +sub run { + my $self = shift; + # Wait until everything settles. + sleep 5; + # Open Help + send_key("f1"); + wait_still_screen(2); + + # Check that Help opens. + assert_screen("kcalc_help_shown"); + + # Rest of the documentation is currently + # unavailable. +} + +sub test_flags { + return {always_rollback => 1}; +} + +1; + +# vim: set sw=4 et: + diff --git a/tests/applications/kcalc/kcalc.pm b/tests/applications/kcalc/kcalc.pm new file mode 100644 index 00000000..6a9680b8 --- /dev/null +++ b/tests/applications/kcalc/kcalc.pm @@ -0,0 +1,97 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script checks that KCalc works in Basic mode. + +# This subroutine rewrites the number into a word. +sub rewrite { + my $number = shift; + my %numbers = ( + 0 => 'zero', + 1 => 'one', + 2 => 'two', + 3 => 'three', + 4 => 'four', + 5 => 'five', + 6 => 'six', + 7 => 'seven', + 8 => 'eight', + 9 => 'nine', + "." => 'divider', + "%" => 'percent', + ); + my $rewritten = $numbers{$number}; + return $rewritten; +} + +# This subroutine performs the clicking of simple operations +# in the KCalc. +sub calculate { + my ($a, $b, $operation) = @_; + # Create lists of the numbers. + my @first = split('', $a); + my @second = split('', $b); + + # For each digit of the first number, click on + # the corresponding button. + foreach (@first) { + my $word = rewrite($_); + assert_and_click("kcalc_button_$word"); + } + # Click the operation button. + assert_and_click("kcalc_button_$operation"); + # For each digit of the second number, click on + # the corresponding button. + foreach (@second) { + my $word = rewrite($_); + assert_and_click("kcalc_button_$word"); + } + # Click on the Equals button + assert_and_click("kcalc_button_equals"); + # Assert the result has appeared on the screen. + my $identifier = hashed_string("$a-$operation-$b"); + assert_screen("kcalc_result_$identifier"); + # Clear the display. + send_key("esc"); +} + +sub run { + my $self = shift; + # Wait until everything settles. + sleep 5; + # Check that two numbers can be added. + calculate("10", "23", "add"); + # Check that two numbers can be subtracted. + calculate("67", "45", "sub"); + # Check that two numbers can be multiplied. + calculate("9", "0.8", "multi"); + # Check that two numbers can be divided. + calculate("77", "7", "div"); + # Check that you can use percents + calculate("33%", "90", "multi"); + + # Check that you can use brackets + assert_and_click("kcalc_button_three"); + assert_and_click("kcalc_button_multi"); + assert_and_click("kcalc_button_bopen"); + assert_and_click("kcalc_button_two"); + assert_and_click("kcalc_button_add"); + assert_and_click("kcalc_button_three"); + assert_and_click("kcalc_button_bclose"); + assert_and_click("kcalc_button_equals"); + my $identifier = hashed_string("3*(3+2)"); + assert_screen("kcalc_result_$identifier"); + send_key("esc"); + +} + +sub test_flags { + return {fatal => 1}; +} + +1; + +# vim: set sw=4 et: +