Skip to content

Cursor tests #13

@ivan-mogilko

Description

@ivan-mogilko

Need cursor tests, using screenshot method to compare the graphic and graphical position.

Something like:

  1. Having a default graphic, test that the position matches mouse.x, mouse.y. Move cursor around with Mouse.SetPosition and assert that cursor position changes.
  2. Mode switch resulting in graphic change.
  3. Changing graphic by script command.
  4. Assigning a view (Mouse.ChangeModeView) and asserting that it changes animation frames over time (short animation to reduce test time).
  5. Specific test: ensure that cursor is drawn after a room change. Perhaps this suits for "Engine Render" tests more than for the "cursor" tests. Idea is that the engine might drop parts of the object caches on a room change, and so this test will assert that cursor got correctly recreated afterwards.

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