Compare commits
5 Commits
32726d13af
...
7c7d9d5990
Author | SHA1 | Date |
---|---|---|
Lukáš Růžička | 7c7d9d5990 | |
Lukáš Růžička | 59aac13d73 | |
Lukáš Růžička | ed59e69b3f | |
Lukáš Růžička | 6c9b3ec8c9 | |
Lukáš Růžička | ca376906ce |
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 553,
|
||||
"ypos": 589,
|
||||
"width": 53,
|
||||
"height": 29,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"okular_search_found"
|
||||
]
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 117 KiB |
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 387,
|
||||
"ypos": 114,
|
||||
"width": 189,
|
||||
"height": 19,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"okular_shortcuts_shown"
|
||||
]
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 220 KiB |
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 435,
|
||||
"ypos": 229,
|
||||
"width": 133,
|
||||
"height": 16,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"okular_submenu_shorcuts"
|
||||
]
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 162 KiB |
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 801,
|
||||
"ypos": 614,
|
||||
"width": 32,
|
||||
"height": 18,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"kde_button_open"
|
||||
]
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 460 KiB |
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 8,
|
||||
"ypos": 36,
|
||||
"width": 26,
|
||||
"height": 18,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"kde_mainmenu_file"
|
||||
]
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
|
@ -2290,6 +2290,17 @@
|
|||
"WORKER_CLASS": "tap"
|
||||
}
|
||||
},
|
||||
"gwenview": {
|
||||
"profiles": {
|
||||
"fedora-KDE-live-iso-x86_64-*-64bit": 42
|
||||
},
|
||||
"settings": {
|
||||
"BOOTFROM": "c",
|
||||
"HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",
|
||||
"POSTINSTALL_PATH": "tests/applications/gwenview",
|
||||
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%"
|
||||
}
|
||||
},
|
||||
"kcalc": {
|
||||
"profiles": {
|
||||
"fedora-KDE-live-iso-x86_64-*-64bit": 42
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This script will download the test data for Gwenview, start the application,
|
||||
# and set a milestone as a starting point for the other Gwenview tests.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
# Switch to console
|
||||
$self->root_console(tty => 3);
|
||||
# Perform git test
|
||||
check_and_install_git();
|
||||
# Download the test data
|
||||
download_testdata();
|
||||
# Exit the terminal
|
||||
desktop_vt;
|
||||
|
||||
# Start the application
|
||||
menu_launch_type("gwenview");
|
||||
# Check that is started
|
||||
assert_screen 'imageviewer_runs';
|
||||
|
||||
# Fullsize the application window.
|
||||
send_key("super-pgup");
|
||||
|
||||
# Open the test file to create a starting point for the other tests.
|
||||
send_key("ctrl-o");
|
||||
|
||||
# Open the Pictures folder.
|
||||
assert_and_dclick("gwen_pictures_directory", button => "left", timeout => 30);
|
||||
|
||||
# Select the image.jpg file.
|
||||
assert_and_click("gwen_file_select_jpg", button => "left", timeout => 30);
|
||||
|
||||
# Hit enter to open it.
|
||||
send_key("ret");
|
||||
|
||||
# Check that the file has been successfully opened.
|
||||
assert_screen("gwen_image_default");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {fatal => 1, milestone => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
|
@ -0,0 +1,28 @@
|
|||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This part tests if EoG can show the About window.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
|
||||
# Open the menu
|
||||
assert_and_click("gwen_burger_menu");
|
||||
# Click to open the About item
|
||||
assert_and_click("gwen_submenu_help");
|
||||
assert_and_click("gwen_submenu_about");
|
||||
assert_screen("qwen_about_shown");
|
||||
# Click on Credits
|
||||
assert_and_click("qwen_about_credits");
|
||||
assert_screen("qwen_credits_shown");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
|
@ -0,0 +1,30 @@
|
|||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This part tests if the application basic layout shows basic info.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
|
||||
# Check that the picture name is shown
|
||||
assert_screen "gwen_picture_name";
|
||||
|
||||
# Check that the Side panel is visible, try to make it visible if it is not.
|
||||
if (!check_screen("gwen_side_panel")) {
|
||||
send_key("f4");
|
||||
}
|
||||
assert_screen("gwen_side_panel");
|
||||
|
||||
# Check that info on side panel is correct
|
||||
assert_screen("gwen_img_info");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
|
@ -0,0 +1,31 @@
|
|||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This part tests if the application can navigate through the current folder.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
|
||||
# wait to settle from snapshot
|
||||
wait_still_screen 3;
|
||||
# Go to next picture.
|
||||
send_key("right");
|
||||
assert_screen("gwen_image_next", timeout => 90);
|
||||
# Go to previous picture
|
||||
send_key("left");
|
||||
assert_and_click("gwen_image_default", timeout => 90);
|
||||
# Show the browse menu
|
||||
assert_and_click("gwen_show_browse");
|
||||
# Check it
|
||||
assert_screen("gwen_browse_shown");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
|
@ -0,0 +1,28 @@
|
|||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This part tests if the application can be switched to full screen.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
|
||||
# Toggle full screen
|
||||
send_key("ctrl-shift-f");
|
||||
wait_still_screen 2;
|
||||
assert_screen("gwen_fullscreen_on");
|
||||
|
||||
# Return to normal mode
|
||||
send_key("ctrl-shift-f");
|
||||
wait_still_screen 2;
|
||||
assert_screen("gwen_image_default");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
|
@ -0,0 +1,23 @@
|
|||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This part tests if the application can show help.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
sleep 2;
|
||||
|
||||
# Open the shortcuts
|
||||
send_key("f1");
|
||||
assert_screen("gwen_help_shown", timeout => 120);
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
|
@ -0,0 +1,27 @@
|
|||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This part tests if the application can rotate the displayed picture.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
|
||||
# Rotate left
|
||||
send_key("shift-ctrl-r");
|
||||
wait_still_screen(3);
|
||||
assert_screen("loupe_image_rotated_left");
|
||||
# Rotate right
|
||||
send_key("ctrl-r");
|
||||
wait_still_screen(3);
|
||||
assert_and_click("loupe_image_default");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
|
@ -0,0 +1,26 @@
|
|||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This part tests if the application can show the shortcuts.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
sleep 2;
|
||||
|
||||
# Open the shortcuts
|
||||
send_key("ctrl-?");
|
||||
assert_screen("loupe_shortcuts_shown");
|
||||
# Try another screen
|
||||
assert_and_click("loupe_shortcuts_alt_page");
|
||||
assert_screen("loupe_shortcuts_alt_shown");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
|
@ -0,0 +1,27 @@
|
|||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This part tests if the application can change the zoom for the displayed picture.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
sleep 2;
|
||||
|
||||
assert_screen("loupe_image_default");
|
||||
# Let us increase the image using the plus key
|
||||
mouse_set("500", "350");
|
||||
send_key("+");
|
||||
send_key("+");
|
||||
wait_still_screen(2);
|
||||
assert_screen("loupe_image_zoomed_in");
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {always_rollback => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
|
@ -9,7 +9,10 @@ sub run {
|
|||
my $self = shift;
|
||||
|
||||
# Open the menu
|
||||
send_key("ctrl+alt+,");
|
||||
assert_and_click("kde_mainmenu_settings");
|
||||
|
||||
# Choose the shortcuts submenu
|
||||
assert_and_click("okular_submenu_shorcuts");
|
||||
|
||||
# Check that Shortcuts has been shown
|
||||
assert_screen("okular_shortcuts_shown");
|
||||
|
|
Loading…
Reference in New Issue