Skip to content

Commit

Permalink
Merge pull request #14798 from punkioudi/fix_libreoffice_pyuno
Browse files Browse the repository at this point in the history
Remove deprecated code
  • Loading branch information
foursixnine committed Apr 27, 2022
2 parents df39bb2 + eeaf81d commit f512df3
Showing 1 changed file with 6 additions and 25 deletions.
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

0 comments on commit f512df3

Please sign in to comment.