1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 GeckoProgram("jsapi-tests", linkage=None)
9 include("../js-cxxflags.mozbuild")
10 include("../js-standalone.mozbuild")
14 "testAddPropertyPropcache.cpp",
15 "testArgumentsObject.cpp",
16 "testArrayBuffer.cpp",
17 "testArrayBufferOrViewAPI.cpp",
18 "testArrayBufferView.cpp",
19 "testArrayBufferWithUserOwnedContents.cpp",
20 "testAtomicOperations.cpp",
21 "testAtomizeUtf8NonAsciiLatin1CodePoint.cpp",
22 "testAtomizeWithoutActiveZone.cpp",
25 "testBoundFunction.cpp",
28 "testCallNonGenericMethodOnProxy.cpp",
29 "testCharacterEncoding.cpp",
30 "testChromeBuffer.cpp",
31 "testCompileNonSyntactic.cpp",
32 "testCompileScript.cpp",
33 "testCompileUtf8.cpp",
34 "testDateToLocaleString.cpp",
36 "testDeduplication.cpp",
38 "testDefineGetterSetterNonEnumerable.cpp",
39 "testDefineProperty.cpp",
40 "testDeflateStringToUTF8Buffer.cpp",
41 "testDeleteProperty.cpp",
42 "testDifferentNewTargetInvokeConstructor.cpp",
43 "testEmptyWindowIsOmitted.cpp",
44 "testErrorCopying.cpp",
45 "testErrorLineOfContext.cpp",
47 "testExecuteInJSMEnvironment.cpp",
48 "testExternalStrings.cpp",
50 "testForceLexicalInitialization.cpp",
51 "testForOfIterator.cpp",
52 "testForwardSetProperty.cpp",
53 "testFractionToDouble.cpp",
54 "testFreshGlobalEvalRedefinition.cpp",
55 "testFrontendCompileStencil.cpp",
56 "testFrontendErrors.cpp",
57 "testFrontendJSON.cpp",
58 "testFunctionBinding.cpp",
59 "testFunctionNonSyntactic.cpp",
60 "testFunctionProperties.cpp",
61 "testGCAllocator.cpp",
63 "testGCChunkPool.cpp",
64 "testGCExactRooting.cpp",
65 "testGCFinalizeCallback.cpp",
66 "testGCGrayMarking.cpp",
67 "testGCHeapBarriers.cpp",
70 "testGCOutOfMemory.cpp",
71 "testGCStoreBufferRemoval.cpp",
73 "testGCWeakCache.cpp",
74 "testGetPropertyDescriptor.cpp",
76 "testIndexToString.cpp",
77 "testInformalValueTypeName.cpp",
80 "testIntlAvailableLocales.cpp",
82 "testIsInsideNursery.cpp",
83 "testIsISOStyleDate.cpp",
84 "testIteratorObject.cpp",
85 "testJSEvaluateScript.cpp",
87 "testLargeArrayBuffers.cpp",
89 "testLooselyEqual.cpp",
90 "testMappedArrayBuffer.cpp",
91 "testMemoryAssociation.cpp",
92 "testMutedErrors.cpp",
94 "testNewTargetInvokeConstructor.cpp",
96 "testNumberToString.cpp",
97 "testObjectEmulatingUndefined.cpp",
101 "testParserAtom.cpp",
102 "testPersistentRooted.cpp",
103 "testPreserveJitCode.cpp",
105 "testPrivateGCThingValue.cpp",
106 "testProfileStrings.cpp",
109 "testPropertyKey.cpp",
110 "testRecordTupleToSource.cpp",
112 "testResolveRecursion.cpp",
115 "testSABAccounting.cpp",
117 "testSavedStacks.cpp",
118 "testScriptInfo.cpp",
119 "testScriptObject.cpp",
120 "testScriptSourceCompression.cpp",
121 "testSetProperty.cpp",
122 "testSetPropertyIgnoringNamedGetter.cpp",
123 "testSharedImmutableStringsCache.cpp",
124 "testSinglyLinkedList.cpp",
125 "testSliceBudget.cpp",
126 "testSlowScript.cpp",
127 "testSourcePolicy.cpp",
128 "testSparseBitmap.cpp",
130 "testStringBuffer.cpp",
131 "testStringIsArrayIndex.cpp",
132 "testStructuredClone.cpp",
134 "testThreadingConditionVariable.cpp",
135 "testThreadingExclusiveData.cpp",
136 "testThreadingMutex.cpp",
137 "testThreadingThread.cpp",
138 "testToSignedOrUnsignedInteger.cpp",
139 "testTypedArrays.cpp",
141 "testUncaughtSymbol.cpp",
143 "testWasmEncoder.cpp",
144 "testWasmLEB128.cpp",
145 "testWasmReturnCalls.cpp",
147 "testWindowNonConfigurable.cpp",
151 # There are clashing definitions of js::jit::AssemblerBuffer.
152 "testAssemblerBuffer.cpp",
156 # We don't want this in the C++ files with the test cases.
160 if not CONFIG["JS_CODEGEN_NONE"]:
162 "testJitABIcalls.cpp",
163 "testJitDCEinGVN.cpp",
164 "testJitFoldsTo.cpp",
166 "testJitMacroAssembler.cpp",
167 "testJitMoveEmitterCycles-mips32.cpp",
168 "testJitMoveEmitterCycles.cpp",
169 "testJitRangeAnalysis.cpp",
170 "testJitRegisterSet.cpp",
171 "testJitRValueAlloc.cpp",
175 if CONFIG["NIGHTLY_BUILD"]:
176 # The Error interceptor only exists on Nightly.
178 "testErrorInterceptor.cpp",
179 "testErrorInterceptorGC.cpp",
182 if CONFIG["OS_ARCH"] not in ("WINNT", "Darwin") and CONFIG["OS_TARGET"] != "Android":
183 # open_memstream() not available on Windows, macOS, or Android
185 "testPrintError.cpp",
188 if CONFIG["MOZ_DEBUG"] or CONFIG["NIGHTLY_BUILD"]:
189 DEFINES["JS_CACHEIR_SPEW"] = True
190 DEFINES["JS_STRUCTURED_SPEW"] = True
192 DEFINES["EXPORT_JS_API"] = True
203 DEFINES["topsrcdir"] = "%s/js/src" % TOPSRCDIR
204 OBJDIR_PP_FILES.js.src["jsapi-tests"] += ["jsapi-tests-gdb.py.in"]