Skip to content

Unable to override window.parent #39

@rvignesh89

Description

@rvignesh89

Windows 8.1
IE 11.0

I have a curious case here. In one of my tests I want to spy on a particular function in the parent document. Since my tests don't load the parent document I instantiate it manually like below.

 parent = {hideBar:function(){}};
 spyOn(parent,'hideBar');

However when I run the tests I'm getting the following error,

Error: hideBar() method does not exist

However, when I try to debug IE I don't get this error. Some information on why this happens would be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions