AnyEvent-Mac-Pasteboard
view release on metacpan or search on metacpan
t/02_changing.t view on Meta::CPAN
use File::Temp;
use Time::HiRes;
binmode STDOUT, ':utf8';
binmode STDERR, ':utf8';
my $cv = AE::cv;
my @dictionary = (qw(FINE â â CLOUD RAIN â â â â
⬠⪠â«));
diag("This test rewrite your current pasteboard. And do not edit pasteboard on running this test.");
### stash pasteboard content.
my $tmp_file = File::Temp->new( SUFFIX => '.pb' );
my $tmp_filename = $tmp_file->filename;
print {$tmp_file} `pbpaste`;
my $onchange_call_count = 0;
my $previous_content = '';
my $paste_tick = AnyEvent::Mac::Pasteboard->new(
multibyte => 1,
( run in 0.867 second using v1.01-cache-2.11-cpan-de7293f3b23 )