Skip to content

Commit

Permalink
Add testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal committed Nov 23, 2024
1 parent 6dd3296 commit 1305366
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/testing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ f3d_test(NAME TestLightIntensityDarker DATA cow.vtp ARGS --light-intensity=0.2)
f3d_test(NAME TestLightIntensityBrighterFullScene DATA WaterBottle.glb ARGS --light-intensity=5.0)
f3d_test(NAME TestLightIntensityDarkerFullScene DATA WaterBottle.glb ARGS --light-intensity=0.2)
f3d_test(NAME TestUTF8 DATA "(ノಠ益ಠ )ノ.vtp")
f3d_test(NAME TestFilenameCommasSpaces DATA "tetrahedron, with commas & spaces.stl")
f3d_test(NAME TestFilenameCommasSpaces DATA "tetrahedron, with commas, \"'`quotes\"'` & spaces.stl")
f3d_test(NAME TestFont DATA suzanne.ply ARGS -n --font-file=${F3D_SOURCE_DIR}/testing/data/Crosterian.ttf)
f3d_test(NAME TestAnimationIndex DATA InterpolationTest.glb ARGS --animation-index=7 --animation-time=0.5 --animation-progress)
f3d_test(NAME TestMultiFileAnimationIndex DATA InterpolationTest.glb BoxAnimated.gltf ARGS --animation-index=9 --animation-time=0.85 --animation-progress --multi-file-mode=all)
Expand Down Expand Up @@ -800,6 +800,7 @@ endif()
f3d_test(NAME TestInteractionCycleAnimationNoAnimation DATA cow.vtp INTERACTION NO_BASELINE) #W

f3d_test(NAME TestInteractionDropFiles ARGS -n INTERACTION_CONFIGURE)#X;DropEvent cow.vtp;DropEvent dragon.vtu suzanne.stl;
f3d_test(NAME TestInteractionDropFileWithQuotes ARGS -n INTERACTION_CONFIGURE)#X;DropEvent "tetrahedron, with commas, \"'`quotes\"'` & spaces.stl";
f3d_test(NAME TestInteractionMultiFileDrop ARGS --multi-file-mode=all -e INTERACTION_CONFIGURE) #DropEvent mb_1_0.vtp mb_2_0.vtp
f3d_test(NAME TestInteractionDropSameFiles ARGS -x INTERACTION_CONFIGURE)#DropEvent cow.vtp;#DropEvent dragon.vtu;#DropEvent cow.vtp#DropEvent cow.vtp;

Expand Down
3 changes: 3 additions & 0 deletions testing/baselines/TestInteractionDropFileWithQuotes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions testing/data/tetrahedronWith"\`Quotes\"`.stl
Git LFS file not shown
16 changes: 16 additions & 0 deletions testing/recordings/TestInteractionDropFileWithQuotes.log.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# StreamVersion 1.2
ExposeEvent 0 599 0 0 0 0 0
RenderEvent 0 599 0 0 0 0 0
KeyPressEvent -475 76 0 120 1 x 0
CharEvent -475 76 0 120 1 x 0
TimerEvent -475 76 0 120 1 x 0
TimerEvent -475 76 0 120 1 x 0
KeyReleaseEvent -475 76 0 120 1 x 0
KeyPressEvent 677 699 0 0 1 Super_L 0
CharEvent 677 699 0 0 1 Super_L 0
UpdateDropLocationEvent 677 699 0 0 1 Super_L 0
EnterEvent 781 494 0 0 0 Super_L 0
DropFilesEvent 781 494 0 0 0 Super_L 1 1 ${F3D_SOURCE_DIR}/testing/data/tetrahedronWith"'`Quotes"'`.stl
RenderEvent 781 494 0 0 0 Super_L 0
MouseMoveEvent 781 498 0 0 0 Super_L 0
LeaveEvent 751 614 0 0 0 Super_L 0

0 comments on commit 1305366

Please sign in to comment.