2013-07-23 17:17:40 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'shortcut';
|
|
|
|
zci is_cached => 1;
|
|
|
|
|
2013-07-29 20:20:18 -07:00
|
|
|
my $start = 'The shortcut for ';
|
|
|
|
my $link = '<a href="https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts">More at Wikipedia</a>';
|
2013-08-13 18:34:47 -07:00
|
|
|
my $first = 'Show desktop in Windows is ⊞Win+D or ⊞Win+M (then use ⊞Win+⇧Shift+M to bring back all windows)';
|
|
|
|
my $second = 'New folder in KDE/GNOME is Ctrl+⇧Shift+N';
|
|
|
|
my $third = "Redo in Mac OS is ⇧Shift+⌘Cmd+Z";
|
|
|
|
my $fourth = "Paste special in KDE/GNOME is Ctrl+⇧Shift+V";
|
2013-07-29 20:20:18 -07:00
|
|
|
|
2013-07-23 17:17:40 -07:00
|
|
|
ddg_goodie_test(
|
2013-07-29 20:20:18 -07:00
|
|
|
[qw( DDG::Goodie::Shortcut
|
2013-07-23 17:17:40 -07:00
|
|
|
)],
|
2013-07-29 20:20:18 -07:00
|
|
|
'windows show desktop shortcut' => test_zci($start . $first, html => $start . $first ." \n" . $link),
|
|
|
|
'ubuntu shortcut new folder' => test_zci($start . $second, html => $start . $second . " \n" . $link),
|
2013-08-13 18:34:47 -07:00
|
|
|
'redo shortcut mac' => test_zci($start . $third, html => $start . $third . " \n" . $link),
|
|
|
|
'paste special shortcut' => undef #test_zci($start . $fourth, html => $start . $fourth . " \n" . $link)
|
2013-07-23 17:17:40 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|