This test passes if opening modal dialogs is blocked and the corresponding calls return immediately with the expected values.