Skip to content

Dialog options tests #18

@ivan-mogilko

Description

@ivan-mogilko

Tests that assert graphical positioning of dialog options (texts).
As with any graphical tests, this is impossible to test using script API, therefore should be tested by making screenshots (in native resolution) and comparing these screenshots with, for example, imported sprites containing drawn text, or text drawn on dynamic sprites at runtime (whatever is more convenient and reliable).

In order to test dialog options, a "Run game loops during dialog options" should be enabled in game settings.
The tests may be run only from "repeatedly_execute_always", while the options are displayed.

Dialog options are controlled by multiple settings. First of all these should be documented. This may also be useful for the user manual.

What should be tested:

  1. Dialog options surface positioning on screen.
  2. Multiple options positioning (x,y) on a dialog options surface, gaps between options.
  3. Multi-line options (wrapped text), that relative positioning of their lines match font's linespacing.
  4. Bullet graphic positioning.

Types of dialog options:

  1. Default standard, when no GUI is assigned for dialog options.
  2. Regular GUI assigned for dialog options.
  3. TextWindow gui assigned for dialog options.
  4. Custom dialog options rendering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions