summaryrefslogtreecommitdiffstats
path: root/js/src/tests/lib/manifest.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /js/src/tests/lib/manifest.py
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/tests/lib/manifest.py')
-rw-r--r--js/src/tests/lib/manifest.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/js/src/tests/lib/manifest.py b/js/src/tests/lib/manifest.py
index 834bcab088..a7590b1b04 100644
--- a/js/src/tests/lib/manifest.py
+++ b/js/src/tests/lib/manifest.py
@@ -31,22 +31,25 @@ class XULInfo:
self.abi = abi
self.os = os
self.isdebug = isdebug
- self.browserIsRemote = False
def as_js(self):
"""Return JS that when executed sets up variables so that JS expression
predicates on XUL build info evaluate properly."""
return (
- 'var xulRuntime = {{ OS: "{}", XPCOMABI: "{}", shell: true }};'
+ "var winWidget = {};"
+ "var gtkWidget = {};"
+ "var cocoaWidget = {};"
+ "var is64Bit = {};"
+ "var xulRuntime = {{ shell: true }};"
"var release_or_beta = getBuildConfiguration('release_or_beta');"
- "var isDebugBuild={}; var Android={}; "
- "var browserIsRemote={}".format(
- self.os,
- self.abi,
+ "var isDebugBuild={}; var Android={}; ".format(
+ str(self.os == "WINNT").lower(),
+ str(self.os == "Darwin").lower(),
+ str(self.os == "Linux").lower(),
+ str("x86-" not in self.abi).lower(),
str(self.isdebug).lower(),
str(self.os == "Android").lower(),
- str(self.browserIsRemote).lower(),
)
)
@@ -258,7 +261,7 @@ def _parse_one(testcase, terms, xul_tester):
pos += 1
elif parts[pos] == "silentfail":
# silentfails use tons of memory, and Darwin doesn't support ulimit.
- if xul_tester.test("xulRuntime.OS == 'Darwin'", testcase.options):
+ if xul_tester.test("cocoaWidget", testcase.options):
testcase.expect = testcase.enable = False
pos += 1
elif parts[pos].startswith("error:"):