Test the window() method.