2015-06-02 17:50:50 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => "screen_resolution";
|
|
|
|
zci is_cached => 1;
|
|
|
|
|
2015-07-08 17:57:28 -07:00
|
|
|
my @answer = test_zci(
|
|
|
|
undef,
|
|
|
|
structured_answer => {
|
|
|
|
data => {
|
|
|
|
title => "Your screen resolution is [Loading...]"
|
|
|
|
},
|
|
|
|
templates => {
|
|
|
|
group => 'icon',
|
|
|
|
item => 0,
|
|
|
|
options => {
|
|
|
|
moreAt => 0
|
|
|
|
}
|
2015-06-02 17:50:50 -07:00
|
|
|
}
|
|
|
|
}
|
2015-07-08 17:57:28 -07:00
|
|
|
);
|
2015-06-02 17:50:50 -07:00
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw( DDG::Goodie::ScreenResolution )],
|
|
|
|
'screen resolution' => @answer,
|
|
|
|
'what is my display resolution' => @answer,
|
2015-06-21 11:45:36 -07:00
|
|
|
'whats my screen resolution' => @answer,
|
|
|
|
'what is my screen resolution' => @answer,
|
|
|
|
'what is the resolution of my screen?' => @answer,
|
|
|
|
'my screen resolution' => @answer,
|
2015-06-02 17:50:50 -07:00
|
|
|
'blah blah screen resolution' => undef,
|
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|