mirror of https://github.com/zulip/zulip.git
Allow CasperJS tests to use 'document' & 'window'
(imported from commit f3f3834d723c7b07e7aaff4ce8cab10a72255f22)
This commit is contained in:
parent
eb93f20f95
commit
3395ac2fb1
|
@ -121,8 +121,9 @@ process.argv.forEach(function (filepath) {
|
|||
options.node = true;
|
||||
|
||||
if (filepath.indexOf('zephyr/tests/frontend/') !== -1) {
|
||||
// Include '$' because we use jQuery inside casper.evaluate
|
||||
options.predef = ['casper', '$'];
|
||||
// Include '$' and browser globals because we use them inside
|
||||
// casper.evaluate
|
||||
options.predef = ['casper', '$', 'document', 'window'];
|
||||
} else {
|
||||
options.predef = [];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue