File: webkit.t

package info (click to toggle)
libgtk3-webkit2-perl 0.06-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 232 kB
  • sloc: perl: 327; makefile: 9
file content (29 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/perl

use strict;
use warnings;

use Test::NeedsDisplay;
use Test::More 'no_plan';
use Data::Dumper;


use Gtk3 -init;


BEGIN {
    use_ok('Gtk3::WebKit');
}


sub main {
    # Grab the session so that headless unit test don't crash, see RT 93421
    my $session = Gtk3::WebKit::get_default_session();

    my $view = Gtk3::WebKit::WebView->new();
    isa_ok($view, 'Gtk3::WebKit::WebView');
    return 0;
}


exit main() unless caller;