to make testing simple, you should pass in the iframe element (`util.elm('context')`) and `window.open`. Then it's gonna be much simpler to pass in fake versions in the test... and you will be able to remove the condition from https://github.com/karma-runner/karma/pull/830#/diff-e935b6c040afc12b7a014e625f4f0cedR34