Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated code #14798

Merged
merged 1 commit into from
Apr 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 6 additions & 25 deletions tests/x11/libreoffice/libreoffice_pyuno_bridge_no_evolution_dep.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ use testapi;
sub run {
my $self = shift;

# get version of libreoffice
x11_start_program('xterm');
my $old_version = script_output('zypper se -i -s -x libreoffice|grep 6.4.5', proceed_on_failure => 1);
send_key 'alt-f4';

# Open LibreOffice
$self->libreoffice_start_program('oowriter');

Expand All @@ -37,26 +32,12 @@ sub run {
send_key 'right';
assert_and_click 'ooffice-writer-tools-run-macros';

if ($old_version) {
# navigate to the python samples item
assert_screen 'ooffice-writer-mymacros';
send_key 'down';
assert_and_click 'ooffice-writer-libreofficemacros';
wait_still_screen(2);
enter_cmd 'py';

assert_and_click 'ooffice-python-samples';
wait_still_screen(2);
send_key_until_needlematch 'ooffice-table-sample', 'down', 5, 1;
}
else {
# navigate to the Table sample item
assert_screen 'ooffice-writer-mymacros';
assert_and_click 'ooffice-writer-libreofficemacros';
wait_still_screen(2);
type_string "table\n";
assert_screen 'ooffice-table-sample';
}
# navigate to the Table sample item
assert_screen 'ooffice-writer-mymacros';
assert_and_click 'ooffice-writer-libreofficemacros';
wait_still_screen(2);
type_string "table\n";
assert_screen 'ooffice-table-sample';
send_key 'tab';

# run create table
Expand Down