diff --git a/test/guix_test/golden_files/guix_all_widgets_widget_focus.7z b/test/guix_test/golden_files/guix_all_widgets_widget_focus.7z index e09e679d..07da43a4 100644 Binary files a/test/guix_test/golden_files/guix_all_widgets_widget_focus.7z and b/test/guix_test/golden_files/guix_all_widgets_widget_focus.7z differ diff --git a/test/guix_test/golden_files/guix_all_widgets_widget_focus.checksum b/test/guix_test/golden_files/guix_all_widgets_widget_focus.checksum index 561b035b..314daae2 100644 Binary files a/test/guix_test/golden_files/guix_all_widgets_widget_focus.checksum and b/test/guix_test/golden_files/guix_all_widgets_widget_focus.checksum differ diff --git a/test/guix_test/regression_test/tests/validation_guix_all_widgets_widget_focus.c b/test/guix_test/regression_test/tests/validation_guix_all_widgets_widget_focus.c index d2911af6..ce6b27e6 100644 --- a/test/guix_test/regression_test/tests/validation_guix_all_widgets_widget_focus.c +++ b/test/guix_test/regression_test/tests/validation_guix_all_widgets_widget_focus.c @@ -8,7 +8,7 @@ TEST_PARAM test_parameter = { "guix_all_widgets_widget_focus", /* Test name */ - 56, 196, 573, 395 /* Define the coordinates of the capture area. + 0, 0, 640, 480 /* Define the coordinates of the capture area. In this test, we only need to capture the line drawing area. */ }; @@ -100,6 +100,17 @@ GX_MULTI_LINE_TEXT_INPUT *ml_input; gx_validation_screen_refresh(); } + ToggleScreen((GX_WINDOW *)&focus_test_screen, (GX_WINDOW *)&text_screen); + gx_system_focus_claim((GX_WIDGET *)&focus_test_screen.focus_test_screen_prompt_1); + gx_validation_set_frame_id(frame_id++); + gx_validation_set_frame_comment("Claim focus on prompt 1"); + gx_validation_screen_refresh(); + + _gx_system_focus_claim((GX_WIDGET *)&focus_test_screen.focus_test_screen_prompt_2); + gx_validation_set_frame_id(frame_id++); + gx_validation_set_frame_comment("Claim focus on prompt 2"); + gx_validation_screen_refresh(); + /* Signal the end of the test case. Verify the output. */ gx_validation_end();