karma-runner / karma-ie-launcher

A Karma plugin. Launcher for Internet Explorer.
MIT License
59 stars 23 forks source link

Unable to override window.parent #39

Open rvignesh89 opened 8 years ago

rvignesh89 commented 8 years ago

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.