GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Prima::sys::Test(3) User Contributed Perl Documentation Prima::sys::Test(3)

Prima::sys::Test - GUI test tools

The module contains a small set or tool used for testing of Prima-related code together with standard perl "Test::" suite.

        use Test::More;
        use Prima::Test;
        plan tests => 1;
        ok( create_window, "can create window");

create_window %args
Creates a standard simple Prima window, returns its handle
set_flag,get_flag,reset_flag
These manipulate the state of an internal $flag that stops event loop when set.
wait_flag
Waits for the flag to be raised in 500 msec, or returns false.

By default fires skip_all condition if running without X11 connection. If the test can be ran without X11, use as:

        use Prima::Test qw(noX11);

which signals the module not to do any GUI initialization.

Upasana Shukla, <me@upasana.me>, Dmitry Karasik, <dmitry@karasik.eu.org>.

Prima, t/*/*.t
2022-04-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.