summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2016-12-21 13:14:17 +0100
committerBenoit Foucher <benoit@zeroc.com>2016-12-21 13:14:17 +0100
commit80a5cbd5dcc9d12e196fdd45097fece9cc71e687 (patch)
treeca9f85e2b314d63133e2a80274626ff72dc28789 /scripts/Util.py
parentFix for running tests with ES5 (diff)
downloadice-80a5cbd5dcc9d12e196fdd45097fece9cc71e687.tar.bz2
ice-80a5cbd5dcc9d12e196fdd45097fece9cc71e687.tar.xz
ice-80a5cbd5dcc9d12e196fdd45097fece9cc71e687.zip
Additional fixes for Edge/IE, only run with ES5
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index f19a573798e..c532adf12de 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -2669,9 +2669,20 @@ class JavaScriptMapping(Mapping):
return Mapping.computeTestCases(self, testId, files)
def getOptions(self, current):
- # JavaScript with NodeJS only supports tcp and no other options, Browsers only support WS and WSS
- protocols = ["ws", "wss"] if current.config.browser else ["tcp"]
- return { "protocol" : protocols, "compress" : [False], "ipv6" : [False], "serialize" : [False], "mx" : [False] }
+ options = {
+ "protocol" : ["ws", "wss"] if current.config.browser else ["tcp"],
+ "compress" : [False],
+ "ipv6" : [False],
+ "serialize" : [False],
+ "mx" : [False],
+ "es5" : [False, True]
+ }
+
+ # Edge and Ie only support ES5 for now
+ if current.config.browser in ["Edge", "Ie"]:
+ options["es5"] = [True]
+
+ return options
from Glacier2Util import *
from IceBoxUtil import *