Skip to content

Commit

Permalink
Test focus issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
ting-ms committed Dec 14, 2023
1 parent 81e4133 commit 16fa4de
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Binary file modified test/guix_test/golden_files/guix_all_widgets_widget_focus.7z
Binary file not shown.
Binary file modified test/guix_test/golden_files/guix_all_widgets_widget_focus.checksum
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
};
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 16fa4de

Please sign in to comment.