Loading test/feh.i +5 −4 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ use warnings; use 5.010; use Cwd; use Test::More tests => 70; use Test::More tests => 71; use Time::HiRes qw/sleep/; use X11::GUITest qw/:ALL/; Loading Loading @@ -195,11 +195,12 @@ SendKeys('{HOM PGU}'); test_win_title($win, 'feh [96 of 100] - test/ok.png'); feh_stop(); $win = feh_start('--thumbnails --thumb-title "%P [%l] %f"', $win = feh_start('--thumbnails -H 300 -W 310 --thumb-title "%P [%l] %f"', 'test/ok.png test/ok.gif test/ok.jpg'); test_win_title($win, 'feh [thumbnail mode]'); $width = (GetWindowPos($win))[2]; is($width, 640, 'thumbnail win: Correct default size'); ($width, $height) = (GetWindowPos($win))[2,3]; is($width, 310, 'thumbnail win: Set correct width'); is($height, 300, 'thumbnail win: Set correct height'); MoveMouseAbs(30, 30); ClickMouseButton(M_BTN1); ($win) = WaitWindowViewable(qr{test/ok\.png$}); Loading test/run-interactive +2 −2 Original line number Diff line number Diff line #!/bin/sh Xnest :1 > /dev/null 2>&1 & Xnest -geometry 500x500 :7 > /dev/null 2>&1 & pid=${!} DISPLAY=:1 prove -v test/feh.i DISPLAY=:7 prove -v test/feh.i kill ${pid} Loading
test/feh.i +5 −4 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ use warnings; use 5.010; use Cwd; use Test::More tests => 70; use Test::More tests => 71; use Time::HiRes qw/sleep/; use X11::GUITest qw/:ALL/; Loading Loading @@ -195,11 +195,12 @@ SendKeys('{HOM PGU}'); test_win_title($win, 'feh [96 of 100] - test/ok.png'); feh_stop(); $win = feh_start('--thumbnails --thumb-title "%P [%l] %f"', $win = feh_start('--thumbnails -H 300 -W 310 --thumb-title "%P [%l] %f"', 'test/ok.png test/ok.gif test/ok.jpg'); test_win_title($win, 'feh [thumbnail mode]'); $width = (GetWindowPos($win))[2]; is($width, 640, 'thumbnail win: Correct default size'); ($width, $height) = (GetWindowPos($win))[2,3]; is($width, 310, 'thumbnail win: Set correct width'); is($height, 300, 'thumbnail win: Set correct height'); MoveMouseAbs(30, 30); ClickMouseButton(M_BTN1); ($win) = WaitWindowViewable(qr{test/ok\.png$}); Loading
test/run-interactive +2 −2 Original line number Diff line number Diff line #!/bin/sh Xnest :1 > /dev/null 2>&1 & Xnest -geometry 500x500 :7 > /dev/null 2>&1 & pid=${!} DISPLAY=:1 prove -v test/feh.i DISPLAY=:7 prove -v test/feh.i kill ${pid}