File: PangoGravity.t

package info (click to toggle)
libpango-perl 1.227-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 572 kB
  • sloc: perl: 1,116; ansic: 35; makefile: 9
file content (23 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/perl
use strict;
use warnings;
use lib qw(t/inc);
use PangoTestHelper tests => 4;

SKIP: {
  skip "PangoGravity", 4
    unless Pango->CHECK_VERSION (1, 16, 0);

  is (Pango::Gravity::to_rotation ('south'), 0.0);
  ok (!Pango::Gravity::is_vertical ('south'));

  my $matrix = Pango::Matrix->new;
  is (Pango::Gravity::get_for_matrix ($matrix), 'south');

  is (Pango::Gravity::get_for_script ('common', 'south', 'strong'), 'south');
}

__END__

Copyright (C) 2007 by the gtk2-perl team (see the file AUTHORS for the
full list).  See LICENSE for more information.