projects
/
imager-screenshot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c50a933
)
sanity tests for multi-monitor grab
author
Tony Cook
<tony@develop-help.com>
Mon, 18 Oct 2010 10:44:16 +0000
(10:44 +0000)
committer
Tony Cook
<tony@develop-help.com>
Mon, 18 Oct 2010 10:44:16 +0000
(10:44 +0000)
t/10win32.t
patch
|
blob
|
blame
|
history
diff --git
a/t/10win32.t
b/t/10win32.t
index 5a50359f90fac90e3ca03ba55f73a58ae9853e56..086c1a422943606edfb0f599169f8f290af8bb68 100644
(file)
--- a/
t/10win32.t
+++ b/
t/10win32.t
@@
-16,7
+16,7
@@
use Imager::Screenshot 'screenshot';
Imager::Screenshot->have_win32
or plan skip_all => "No Win32 support";
-plan tests => 1
3
;
+plan tests => 1
5
;
{
my $im = screenshot(hwnd => 0);
@@
-53,3
+53,9
@@
plan tests => 13;
is($im->tags(name => 'ss_window_height'), 30 + $im->getheight + 17,
"check image height against window size");
}
+
+{ # full multi-monitor desktop
+ my $im = screenshot(hwnd => 0, monitor => -1);
+ ok($im, "full desktop");
+ is($im->getchannels, 4, "should have an alpha channel");
+}