[test]add #933 (focus) to (manual) test cases

change a little to the code in #933 and add focus event to the two windows