Skip to content

Commit 92c00a6

Browse files
committed
chore: polish code
1 parent 5871fa1 commit 92c00a6

3 files changed

Lines changed: 10 additions & 17 deletions

File tree

tests/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ add_test(
4848
)
4949

5050
# Add interactive test configuration
51-
add_test(
52-
NAME SDLInteractiveTests
53-
COMMAND ${SDL_TEST_NAME} --interactive
54-
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin
55-
)
56-
set_tests_properties(SDLInteractiveTests PROPERTIES DISABLED TRUE)
51+
#add_test(
52+
# NAME SDLInteractiveTests
53+
# COMMAND ${SDL_TEST_NAME} --interactive
54+
# WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin
55+
#)
56+
#set_tests_properties(SDLInteractiveTests PROPERTIES DISABLED TRUE)

tests/sdl/MouseTests.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ TEST_F(MouseDragTest, CanDragElementToNewPosition) {
2121
"Drag Test Element"
2222
);
2323

24-
// Process events for a short while to ensure window is fully rendered
25-
processEventsFor(std::chrono::milliseconds(1000));
26-
2724
// Initial position of the element
2825
const SDL_Rect initialRect = dragElement->getRect();
2926

@@ -76,10 +73,6 @@ TEST_F(MouseDragTest, CanDragElementToNewPosition) {
7673
// Perform the drag operation
7774
performMouseDrag(startPoint, endPoint);
7875

79-
// Add additional delay after drag to ensure events are processed
80-
std::cout << "Waiting for drag operation to complete..." << std::endl;
81-
processEventsFor(std::chrono::milliseconds(2000));
82-
8376
// Get the element's position after the drag
8477
const SDL_Rect finalRect = dragElement->getRect();
8578
std::cout << " Final element position: ("

tests/sdl/TestConfig.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ namespace RobotTest {
1515

1616
// Test execution settings
1717
bool runTests = false;
18-
std::chrono::milliseconds initialWaitTime{6000}; // Increased to 6 seconds
19-
std::chrono::seconds testTimeout{60}; // Increased to 60 seconds
18+
std::chrono::milliseconds initialWaitTime{6000};
19+
std::chrono::seconds testTimeout{60};
2020

2121
// Delay settings for animation and visualization
2222
std::chrono::milliseconds frameDelay{16}; // ~60 FPS
23-
std::chrono::milliseconds setupDelay{1500}; // Increased to 1.5 seconds
24-
std::chrono::milliseconds actionDelay{900}; // Increased to 900ms (3x original)
23+
std::chrono::milliseconds setupDelay{1500};
24+
std::chrono::milliseconds actionDelay{900};
2525

2626
// Window positioning
2727
int windowX = 50;

0 commit comments

Comments
 (0)