File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1117,6 +1117,16 @@ void RegisterTests_WidgetsInputText(ImGuiTestEngine* e)
1117
1117
IM_CHECK_STR_EQ (vars.CompletionBuffer .c_str (), " Hello World" );
1118
1118
ctx->KeyPress (ImGuiKey_Tab);
1119
1119
IM_CHECK_STR_EQ (vars.CompletionBuffer .c_str (), " Hello World......................................." );
1120
+ #if IMGUI_VERSION_NUM >= 19143
1121
+ // Regression between 19113 and 19120
1122
+ ctx->KeyChars (" !!" );
1123
+ IM_CHECK_STR_EQ (vars.CompletionBuffer .c_str (), " Hello World.......................................!!" );
1124
+ #endif
1125
+
1126
+ ctx->KeyCharsReplace (" Hello World" );
1127
+ IM_CHECK_STR_EQ (vars.CompletionBuffer .c_str (), " Hello World" );
1128
+ ctx->KeyPress (ImGuiKey_Tab);
1129
+ IM_CHECK_STR_EQ (vars.CompletionBuffer .c_str (), " Hello World......................................." );
1120
1130
1121
1131
// Test undo after callback changes
1122
1132
ctx->KeyPress (ImGuiMod_Ctrl | ImGuiKey_Z);
You can’t perform that action at this time.
0 commit comments