Skip to content

Commit 60476a6

Browse files
committed
ui-tests: rename CaptureText() to reflect that it's about Windows Terminal
This function will soon be moved into a library, therefore it makes sense to give it a non-generic name. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 1e05e28 commit 60476a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui-tests/background-hook.ahk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ CloseWindow := true
8585
WinMove 0, 0
8686
Info 'Moved window to top left (so that the bottom is not cut off)'
8787

88-
CaptureText() {
88+
CaptureTextFromWindowsTerminal() {
8989
ControlGetPos &cx, &cy, &cw, &ch, 'Windows.UI.Composition.DesktopWindowContentBridge1', "A"
9090
titleBarHeight := 54
9191
scrollBarWidth := 28
@@ -109,7 +109,7 @@ Send('git config user.name Test{Enter}git config user.email [email protected]{Enter}')
109109
Info('Committing')
110110
Send('git commit --allow-empty -m zOMG{Enter}')
111111
; Wait for the hook to finish printing
112-
While not RegExMatch(CaptureText(), '`n49$')
112+
While not RegExMatch(CaptureTextFromWindowsTerminal(), '`n49$')
113113
{
114114
Sleep 100
115115
if A_Index > 1000
@@ -121,7 +121,7 @@ Info('Hook finished')
121121
; Verify that CursorUp shows the previous command
122122
Send('{Up}')
123123
Sleep 150
124-
Text := CaptureText()
124+
Text := CaptureTextFromWindowsTerminal()
125125
if not RegExMatch(Text, 'git commit --allow-empty -m zOMG *$')
126126
ExitWithError 'Cursor Up did not work: ' Text
127127
Info('Match!')

0 commit comments

Comments
 (0)