Bug 791470: test-window-observer removing use of setTimeout and async open&close of windows