提交 eec5af06 编写于 作者: B Benjamin Pasero

debt - bail out on some window methods in tests

上级 a62ea90c
......@@ -19,9 +19,9 @@
// windows. This we cannot allow as it may crash
// the test run.
// !!! DO NOT CHANGE !!!
window.open = function () {return null;};
window.alert = function () {}
window.confirm = function () {}
window.open = function () { throw new Error('window.open() is not supported in tests!'); };
window.alert = function () { throw new Error('window.alert() is not supported in tests!'); }
window.confirm = function () { throw new Error('window.confirm() is not supported in tests!'); }
mocha.setup({
ui: 'tdd',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册