summaryrefslogtreecommitdiff
path: root/js/test/Common/TestRunner.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/test/Common/TestRunner.js')
-rw-r--r--js/test/Common/TestRunner.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/test/Common/TestRunner.js b/js/test/Common/TestRunner.js
index 37d3684dc4a..75a960644ed 100644
--- a/js/test/Common/TestRunner.js
+++ b/js/test/Common/TestRunner.js
@@ -14,6 +14,16 @@
Test : false,
*/
+function isSafari()
+{
+ return /^((?!chrome).)*safari/i.test(navigator.userAgent);
+}
+
+function isWorker()
+{
+ return typeof(WorkerGlobalScope) !== 'undefined' && this instanceof WorkerGlobalScope;
+}
+
function runTest(name, language, defaultHost, protocol, configurations, out)
{
var server, communicator;