Skip to content

Project Tests #34

Description

@jordanbrotherton

test_project.gd needs tests for the newer functions added into project.gd.

These include:

  • get_page_by_index: Testing valid, negative, and out of bounds indices.
  • next_page: Testing if the loop functionality works and is obtaining the next frame or creating it in editor mode.
  • prev_page: Testing if the previous frame is obtained and is stopping properly if at the first frame.
  • get_thumbnail: Testing if a valid texture was returned.
  • new_page: Seeing if creating a new page works as expected and is added to the end of the timeline. (At the moment: This may change!)
  • set_frame: Check if the signal is emitting properly (with the proper page) and the current_frame variable is set.
  • set_layer: See if current_layer is properly switched.
  • delete_frame: See if the frame is deleted and the surrounding elements are adjusted properly/not orphaned.

Each of these should verify functionality, related variables, and return values. Refer to the existing tests for implementation examples.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    editorAnything related to the Editor viewtestRelates to a Unit Test.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions