diff options
Diffstat (limited to 'tests/lib/mocha-3.1.2/lib/browser/tty.js')
-rw-r--r-- | tests/lib/mocha-3.1.2/lib/browser/tty.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.2/lib/browser/tty.js b/tests/lib/mocha-3.1.2/lib/browser/tty.js new file mode 100644 index 0000000000..c77f7e99a6 --- /dev/null +++ b/tests/lib/mocha-3.1.2/lib/browser/tty.js @@ -0,0 +1,13 @@ +'use strict'; + +exports.isatty = function isatty () { + return true; +}; + +exports.getWindowSize = function getWindowSize () { + if ('innerHeight' in global) { + return [global.innerHeight, global.innerWidth]; + } + // In a Web Worker, the DOM Window is not available. + return [640, 480]; +}; |