Extract animation operation planning
This commit is contained in:
@@ -318,6 +318,16 @@ add_test(NAME pp_app_core_document_recording_tests COMMAND pp_app_core_document_
|
||||
set_tests_properties(pp_app_core_document_recording_tests PROPERTIES
|
||||
LABELS "app;desktop-fast;fuzz")
|
||||
|
||||
add_executable(pp_app_core_document_animation_tests
|
||||
app_core/document_animation_tests.cpp)
|
||||
target_link_libraries(pp_app_core_document_animation_tests PRIVATE
|
||||
pp_app_core
|
||||
pp_test_harness)
|
||||
|
||||
add_test(NAME pp_app_core_document_animation_tests COMMAND pp_app_core_document_animation_tests)
|
||||
set_tests_properties(pp_app_core_document_animation_tests PROPERTIES
|
||||
LABELS "app;desktop-fast;fuzz")
|
||||
|
||||
add_executable(pp_app_core_document_layer_tests
|
||||
app_core/document_layer_tests.cpp)
|
||||
target_link_libraries(pp_app_core_document_layer_tests PRIVATE
|
||||
@@ -742,6 +752,30 @@ if(TARGET pano_cli)
|
||||
LABELS "app;integration;desktop-fast;fuzz"
|
||||
WILL_FAIL TRUE)
|
||||
|
||||
add_test(NAME pano_cli_plan_animation_operation_add_smoke
|
||||
COMMAND pano_cli plan-animation-operation --kind add --frame-count 2 --current-frame 0)
|
||||
set_tests_properties(pano_cli_plan_animation_operation_add_smoke PROPERTIES
|
||||
LABELS "app;integration;desktop-fast"
|
||||
PASS_REGULAR_EXPRESSION "\"command\":\"plan-animation-operation\".*\"operation\":\"add-frame\".*\"selectedFrame\":2.*\"mutatesDocument\":true.*\"updatesCanvasAnimation\":true.*\"marksUnsaved\":true")
|
||||
|
||||
add_test(NAME pano_cli_plan_animation_operation_duration_floor_smoke
|
||||
COMMAND pano_cli plan-animation-operation --kind duration --frame-count 2 --selected-frame 1 --current-duration 1 --delta -1)
|
||||
set_tests_properties(pano_cli_plan_animation_operation_duration_floor_smoke PROPERTIES
|
||||
LABELS "app;integration;desktop-fast;fuzz"
|
||||
PASS_REGULAR_EXPRESSION "\"command\":\"plan-animation-operation\".*\"operation\":\"adjust-duration\".*\"selectedFrame\":1.*\"frameDuration\":1.*\"mutatesDocument\":false.*\"marksUnsaved\":false")
|
||||
|
||||
add_test(NAME pano_cli_plan_animation_operation_next_wrap_smoke
|
||||
COMMAND pano_cli plan-animation-operation --kind next --total-duration 5 --current-frame 4)
|
||||
set_tests_properties(pano_cli_plan_animation_operation_next_wrap_smoke PROPERTIES
|
||||
LABELS "app;integration;desktop-fast"
|
||||
PASS_REGULAR_EXPRESSION "\"command\":\"plan-animation-operation\".*\"operation\":\"goto-next\".*\"currentFrame\":4.*\"targetFrame\":0.*\"updatesCanvasAnimation\":true")
|
||||
|
||||
add_test(NAME pano_cli_plan_animation_operation_rejects_remove_last_frame
|
||||
COMMAND pano_cli plan-animation-operation --kind remove --frame-count 1 --selected-frame 0)
|
||||
set_tests_properties(pano_cli_plan_animation_operation_rejects_remove_last_frame PROPERTIES
|
||||
LABELS "app;integration;desktop-fast;fuzz"
|
||||
WILL_FAIL TRUE)
|
||||
|
||||
add_test(NAME pano_cli_plan_share_file_unsaved_smoke
|
||||
COMMAND pano_cli plan-share-file)
|
||||
set_tests_properties(pano_cli_plan_share_file_unsaved_smoke PROPERTIES
|
||||
|
||||
Reference in New Issue
Block a user