test window.device