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.
test_project.gdneeds tests for the newer functions added intoproject.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.