CurieTestHelper->run_app_with_document( $document, $callback )

Set up a Renard::Curie::App application for running tests on a given document. The main loop of the Renard::Curie::App application is run after the callback is called, so the callback should set up events to be run once the main loop has started.

This callback set up can be accomplished by using Glib::Timeout. For example, to run code 100 ms after the main loop has started, use:

Glib::Timeout->add(100, sub {
  ...
});

See the Glib documentation for more information.

* $document:

a document that will be opened by the Renard::Curie::App

* $callback:

a coderef which will be passed in the Renard::Curie::App $app and the current Renard::Curie::Component::PageDrawingArea $page_component for the document $document.

sub {
  my ( $app, $page_component ) = @_;
  ...
}
CurieTestHelper->refresh_gui( %args )

Runs the Gtk main loop until there are no more events left.

The %args hash may contain the key value pair

delay

takes an Int value which is passed to sleep in order to sleep after the events have been processed.

CurieTestHelper->create_app_with_document($document)

Creates a Renard::Curie::App with a Renard::Incunabula::Document $document opened.

Returns two objects in a list

($app, $page_component)

where

$app

is a Renard::Curie::App

$page_component

is a Renard::Curie::Component::PageDrawingArea component which contains the document passed in $document.

3 POD Errors

The following errors were encountered while parsing the POD:

Around line 7:

Unknown directive: =func

Around line 53:

Unknown directive: =func

Around line 79:

Unknown directive: =func