File: 90rt101716.t

package info (click to toggle)
libtickit-perl 0.73-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 660 kB
  • sloc: perl: 4,944; makefile: 5
file content (29 lines) | stat: -rw-r--r-- 507 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use v5.14;
use warnings;

use Test::More;
use Test::Fatal;
use Tickit::Window;
use Tickit::Test;

my ( $term, $win ) = mk_term_and_window;
my $float = $win->make_float( 2, 2, 3, 3 );

$float->bind_event( expose => sub {
   my ( $win, undef, $info ) = @_;
   my $rb = $info->rb;

   $rb->clear;

   my $ch = ord 'x';
   $rb->char_at(0, 0, $ch);

   is( exception {
      $rb->get_cell(300, 300)->char
   }, undef, 'can request position outside renderbuffer');
});

$win->expose;
flush_tickit;

done_testing;