Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.js13
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];
+};