[Concept,03/22] expo: Use textline consistently in tests

Message ID 20251207201628.2882382-4-sjg@u-boot.org
State New
Headers
Series expo: Expand docs, dump and textlines in non-popup expos |

Commit Message

Simon Glass Dec. 7, 2025, 8:16 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

The word 'lineedit' has crept into one of the tests, but it is not
correct. Use 'textline' instead.

Signed-off-by: Simon Glass <simon.glass@canonical.com>
---

 test/boot/cedit.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
  

Patch

diff --git a/test/boot/cedit.c b/test/boot/cedit.c
index 041da445459..7af3dfa2338 100644
--- a/test/boot/cedit.c
+++ b/test/boot/cedit.c
@@ -348,10 +348,10 @@  static int cedit_render(struct unit_test_state *uts)
 	/*
 	 * Send some keypresses. Note that the console must be enabled so that
 	 * the characters actually reach the putc_xy() in console_truetype,
-	 * since in scene_textline_send_key(), the lineedit restores the
+	 * since in scene_textline_send_key(), the textline restores the
 	 * vidconsole state, outputs the character and then saves the state
 	 * again. If the character is never output, then the state won't be
-	 * updated and the lineedit will be inconsistent.
+	 * updated and the textline will be inconsistent.
 	 */
 	ut_unsilence_console(uts);
 	for (i = 'a'; i < 'd'; i++)
@@ -368,8 +368,8 @@  static int cedit_render(struct unit_test_state *uts)
 }
 BOOTSTD_TEST(cedit_render, UTF_DM | UTF_SCAN_FDT);
 
-/* Check the cedit displays lineedits correctly */
-static int cedit_render_lineedit(struct unit_test_state *uts)
+/* Check the cedit displays textlines correctly */
+static int cedit_render_textline(struct unit_test_state *uts)
 {
 	struct scene_obj_textline *tline;
 	struct video_priv *vid_priv;
@@ -446,7 +446,7 @@  static int cedit_render_lineedit(struct unit_test_state *uts)
 
 	return 0;
 }
-BOOTSTD_TEST(cedit_render_lineedit, UTF_DM | UTF_SCAN_FDT);
+BOOTSTD_TEST(cedit_render_textline, UTF_DM | UTF_SCAN_FDT);
 
 /* Check the cedit is arranged correctly */
 static int cedit_position(struct unit_test_state *uts)
@@ -654,7 +654,7 @@  static int cedit_mouse(struct unit_test_state *uts)
 	ut_asserteq(SCENEOF_OPEN | SCENEOF_SIZE_VALID | SCENEOF_DIRTY,
 		    speed->obj.flags);
 
-	/* click on the lineedit */
+	/* click on the textline */
 	ut_assertok(click_check(uts, scn, mach->edit_id,
 				EXPOACT_REPOINT_OPEN, &act));
 	ut_asserteq(ID_MACHINE_NAME, act.select.id);