set viewport for test windows

minimizing does not work for chrome and just changing viewport stills
brings the test window to focus.