summaryrefslogtreecommitdiff
path: root/js/test/Common/TestRunner.js
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-10-04 10:20:24 +0200
committerJose <jose@zeroc.com>2016-10-04 10:20:24 +0200
commit8c3173fc13a8642e3a165f23f9bf1d087aec4a55 (patch)
tree2b75200cedf2241e5894f996bfc95e70c1fd685d /js/test/Common/TestRunner.js
parentAnother fix for ICE-7399 (diff)
downloadice-8c3173fc13a8642e3a165f23f9bf1d087aec4a55.tar.bz2
ice-8c3173fc13a8642e3a165f23f9bf1d087aec4a55.tar.xz
ice-8c3173fc13a8642e3a165f23f9bf1d087aec4a55.zip
Fixed (ICE-7404) - js Ice/binding hung on Windows with Chrome
Diffstat (limited to 'js/test/Common/TestRunner.js')
-rw-r--r--js/test/Common/TestRunner.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/test/Common/TestRunner.js b/js/test/Common/TestRunner.js
index d8c7e399c96..e006c755172 100644
--- a/js/test/Common/TestRunner.js
+++ b/js/test/Common/TestRunner.js
@@ -19,11 +19,25 @@ function isSafari()
return /^((?!chrome).)*safari/i.test(navigator.userAgent);
}
+function isChrome()
+{
+ //
+ // We need to check for Edge browser as it might include Chrome in its user agent.
+ //
+ return navigator.userAgent.indexOf("Edge/") === -1 &&
+ navigator.userAgent.indexOf("Chrome/") !== -1;
+}
+
function isWorker()
{
return typeof(WorkerGlobalScope) !== 'undefined' && this instanceof WorkerGlobalScope;
}
+function isWindows()
+{
+ return navigator.userAgent.indexOf("Windows") != -1;
+}
+
function runTest(name, language, defaultHost, protocol, configurations, out)
{
var server, communicator;