Use single-line javascript in testWindowMaximize