Recreate needles to make them check different area.

This commit adjusts the area that needles look for to avoid checking
based on a menu item that has disappeared from the system.
This commit is contained in:
Lukas Ruzicka 2019-01-28 11:03:56 +01:00
parent b6cf28715a
commit c97c23d485
32 changed files with 132 additions and 177 deletions

View File

@ -1,15 +0,0 @@
{
"properties": [],
"tags": [
"apps_run_cheese"
],
"area": [
{
"xpos": 116,
"ypos": 5,
"width": 52,
"height": 19,
"type": "match"
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@ -8,7 +8,7 @@
"xpos": 447,
"ypos": 41,
"width": 133,
"height": 23,
"height": 21,
"type": "match"
}
]

View File

@ -5,9 +5,9 @@
],
"area": [
{
"xpos": 117,
"ypos": 4,
"width": 117,
"xpos": 452,
"ypos": 110,
"width": 118,
"height": 23,
"type": "match"
}

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 115,
"ypos": 5,
"width": 47,
"height": 19,
"xpos": 517,
"ypos": 532,
"width": 113,
"height": 20,
"type": "match"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 117,
"ypos": 4,
"width": 72,
"height": 22,
"xpos": 424,
"ypos": 515,
"width": 20,
"height": 17,
"type": "match"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 114,
"ypos": 5,
"width": 66,
"height": 20,
"xpos": 612,
"ypos": 42,
"width": 42,
"height": 19,
"type": "match"
}
]

View File

@ -5,9 +5,9 @@
],
"area": [
{
"xpos": 115,
"ypos": 5,
"width": 79,
"xpos": 195,
"ypos": 627,
"width": 126,
"height": 21,
"type": "match"
}

View File

@ -1,15 +1,15 @@
{
"area": [
{
"height": 17,
"xpos": 115,
"ypos": 5,
"width": 49,
"type": "match"
}
],
"properties": [],
"tags": [
"apps_run_clocks"
]
{
"area": [
{
"xpos": 488,
"ypos": 382,
"width": 52,
"height": 50,
"type": "match"
}
],
"properties": [],
"tags": [
"apps_run_clocks"
]
}

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 117,
"ypos": 5,
"width": 112,
"height": 23,
"xpos": 457,
"ypos": 71,
"width": 65,
"height": 21,
"type": "match"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 116,
"ypos": 4,
"width": 42,
"height": 20,
"xpos": 256,
"ypos": 139,
"width": 82,
"height": 22,
"type": "match"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 115,
"ypos": 6,
"width": 80,
"height": 20,
"xpos": 445,
"ypos": 40,
"width": 138,
"height": 22,
"type": "match"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 114,
"ypos": 5,
"width": 83,
"height": 19,
"xpos": 412,
"ypos": 39,
"width": 79,
"height": 23,
"type": "match"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 115,
"ypos": 5,
"width": 127,
"height": 20,
"xpos": 446,
"ypos": 71,
"width": 132,
"height": 21,
"type": "match"
}
]

View File

@ -1,15 +1,15 @@
{
"properties": [],
"tags": [
"apps_run_evolution_warning"
],
"area": [
{
"xpos": 688,
"ypos": 644,
"width": 32,
"height": 19,
"type": "match"
}
]
{
"properties": [],
"tags": [
"apps_run_evolution_warning"
],
"area": [
{
"xpos": 691,
"ypos": 645,
"width": 26,
"height": 19,
"type": "match"
}
]
}

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 116,
"ypos": 6,
"width": 37,
"height": 17,
"xpos": 157,
"ypos": 87,
"width": 67,
"height": 22,
"type": "match"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 116,
"ypos": 5,
"width": 35,
"height": 21,
"xpos": 467,
"ypos": 40,
"width": 92,
"height": 22,
"type": "match"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 116,
"ypos": 5,
"width": 96,
"height": 21,
"xpos": 461,
"ypos": 122,
"width": 102,
"height": 20,
"type": "match"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 117,
"ypos": 5,
"width": 35,
"height": 20,
"xpos": 573,
"ypos": 36,
"width": 34,
"height": 19,
"type": "match"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 114,
"ypos": 5,
"width": 44,
"height": 21,
"xpos": 52,
"ypos": 41,
"width": 23,
"height": 20,
"type": "match"
}
]

View File

@ -1,15 +1,15 @@
{
"area": [
{
"xpos": 117,
"ypos": 3,
"width": 107,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"apps_run_monitor"
]
{
"area": [
{
"xpos": 489,
"ypos": 141,
"width": 51,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"apps_run_monitor"
]
}

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 116,
"ypos": 6,
"width": 37,
"height": 17,
"xpos": 157,
"ypos": 86,
"width": 67,
"height": 23,
"type": "ocr"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 115,
"ypos": 4,
"width": 51,
"height": 20,
"xpos": 458,
"ypos": 338,
"width": 111,
"height": 89,
"type": "match"
}
]

View File

@ -5,9 +5,9 @@
],
"area": [
{
"xpos": 115,
"ypos": 4,
"width": 82,
"xpos": 128,
"ypos": 98,
"width": 115,
"height": 21,
"type": "match"
}

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 115,
"ypos": 6,
"width": 62,
"height": 20,
"xpos": 104,
"ypos": 41,
"width": 61,
"height": 21,
"type": "ocr"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 115,
"ypos": 5,
"xpos": 345,
"ypos": 150,
"width": 66,
"height": 19,
"height": 17,
"type": "match"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 115,
"ypos": 5,
"width": 81,
"height": 18,
"xpos": 501,
"ypos": 39,
"width": 71,
"height": 21,
"type": "match"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 115,
"ypos": 5,
"xpos": 440,
"ypos": 43,
"width": 51,
"height": 20,
"height": 17,
"type": "match"
}
]

View File

@ -5,10 +5,10 @@
],
"area": [
{
"xpos": 114,
"ypos": 5,
"width": 66,
"height": 19,
"xpos": 386,
"ypos": 401,
"width": 56,
"height": 18,
"type": "match"
}
]

View File

@ -9,7 +9,7 @@ sub run {
my $self = shift;
# Start the application
start_with_launcher('apps_menu_calculator');
start_with_launcher('apps_menu_calculator', 'apps_menu_utilities');
# Check that it is started
assert_screen 'apps_run_calculator';
# Close the application

View File

@ -8,7 +8,7 @@ use utils;
sub run {
my $self = shift;
# Start the application
start_with_launcher('apps_menu_dviewer');
start_with_launcher('apps_menu_dviewer', 'apps_menu_utilities');
# Check that is started
assert_screen 'apps_run_dviewer';
# Close the application

View File

@ -1,30 +0,0 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# This test checks that Evolution starts.
sub run {
my $self = shift;
# Start the application
start_with_launcher('apps_menu_evolution');
# get rid of the welcome screen
if ('apps_run_evolution_warning') {
assert_and_click 'apps_run_evolution_warning';
}
assert_and_click 'apps_run_evolution_welcome';
wait_still_screen 2;
# Check that is started
assert_screen 'apps_run_evolution';
# Close the application
quit_with_shortcut();
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: