Test for toString on event.view. This test simulates a click when run via DumpRenderTree. Otherwise, click below and you should see "Success": event.view : document: [object HTMLDocument] proto: [object WindowPrototype] Success getting [object Window]