fix replace-all test suite for when the replace string changes

This commit is contained in:
Robby Findler 2016-12-24 12:25:56 -06:00
parent 5a09d2b825
commit 84433c528c

View File

@ -175,8 +175,13 @@
(queue-callback (λ () (semaphore-post s)) #f)
(semaphore-wait s))
(for ([c (in-string replace-string)])
(test:keystroke c))
(test:menu-select "Edit" "Select All")
(cond
[(equal? replace-string "")
(test:keystroke #\backspace)]
[else
(for ([c (in-string replace-string)])
(test:keystroke c))])
(queue-callback
(λ ()