Task 54279: Bacport dialogs new-style tests

Checked out tests/ at 0527b77 (initial port) and backported to 3.6.1