Issue #21477: Add htests for Search and Replace dialogs.
Patch by Saimadhav Heblikar.
Merge with 3.4