Name Description Size Coverage
hidePointer.cpp 836 0 %
jsapi-tests-gdb.py.in 234 -
moz.build 6229 -
README # JSAPI Test Suite 5176 -
selfTest.cpp 472 0 %
testAddPropertyPropcache.cpp Do the test a bunch of times, because sometimes we seem to randomly miss the propcache. 2054 0 %
testArgumentsObject.cpp 3639 0 %
testArrayBuffer.cpp 13643 0 %
testArrayBufferOrViewAPI.cpp 3502 0 %
testArrayBufferView.cpp 5518 0 %
testArrayBufferWithUserOwnedContents.cpp 1446 0 %
testAssemblerBuffer.cpp 21548 0 %
testAssemblerCodeGen.cpp 5437 -
testAtomicOperations.cpp failure 13620 0 %
testAtomizeUtf8NonAsciiLatin1CodePoint.cpp 6475 0 %
testAtomizeWithoutActiveZone.cpp 1430 0 %
testAvlTree.cpp 12098 0 %
testBigInt.cpp 24257 0 %
testBoundFunction.cpp 904 0 %
testBug604087.cpp Tests JS_TransplantObject 3163 0 %
testCallArgs.cpp 2381 0 %
testCallNonGenericMethodOnProxy.cpp 2967 0 %
testCharacterEncoding.cpp 7512 0 %
testChromeBuffer.cpp Check that, even after untrusted content has exhausted the stack, code compiled with "trusted principals" can run using reserved trusted-only buffer space. 10431 0 %
testCompileNonSyntactic.cpp 2075 0 %
testCompileScript.cpp 8082 0 %
testCompileUtf8.cpp 11927 0 %
testDateToLocaleString.cpp 2146 0 %
testDebugger.cpp 1975 0 %
testDeduplication.cpp 4880 0 %
testDeepFreeze.cpp 1460 0 %
testDefineGetterSetterNonEnumerable.cpp 1745 0 %
testDefineProperty.cpp 697 0 %
testDeflateStringToUTF8Buffer.cpp 5918 0 %
testDeleteProperty.cpp 1600 0 %
testDifferentNewTargetInvokeConstructor.cpp This is a different new.target function 1126 0 %
testDynamicCodeBrandChecks.cpp Tests that the column number of error reports is properly copied over from other reports when invoked from the C++ api. 10078 0 %
testEmptyWindowIsOmitted.cpp 5131 0 %
testErrorCopying.cpp Tests that the column number of error reports is properly copied over from other reports when invoked from the C++ api. 1060 0 %
testErrorInterceptor.cpp 4475 0 %
testErrorInterceptorGC.cpp 869 0 %
testErrorLineOfContext.cpp 2586 0 %
testException.cpp 3031 0 %
testExecuteInJSMEnvironment.cpp 3917 0 %
testExternalStrings.cpp 7059 0 %
testFifo.cpp 4306 0 %
testFindSCCs.cpp Test what happens if recusion causes the stack to become full while traversing the graph. The test case is a large number of vertices, almost all of which are arranged in a linear chain. The last few are left unlinked to exercise adding vertices after the stack full condition has already been detected. Such an arrangement with no cycles would normally result in one group for each vertex, but since the stack is exhasted in processing a single group is returned containing all the vertices. 4755 0 %
testForceLexicalInitialization.cpp 1377 0 %
testForOfIterator.cpp 1420 0 %
testForwardSetProperty.cpp 2568 0 %
testFractionToDouble.cpp 7143 0 %
testFreshGlobalEvalRedefinition.cpp Create the global object. 2148 0 %
testFrontendCompileStencil.cpp 1820 0 %
testFrontendErrors.cpp static 10662 0 %
testFrontendJSON.cpp 20446 0 %
testFunctionBinding.cpp Test function name binding. 2571 0 %
testFunctionNonSyntactic.cpp Test function with enclosing non-syntactic scope. 3108 0 %
testFunctionProperties.cpp 655 0 %
testGCAllocator.cpp Finish any ongoing background free activity. 38481 0 %
testGCCellPtr.cpp 1763 0 %
testGCChunkPool.cpp 1707 0 %
testGCExactRooting.cpp Use the objects we just created to ensure that they are still alive. 34752 0 %
testGCFinalizeCallback.cpp Full GC, non-incremental. 6429 0 %
testGCGrayMarking.cpp 22482 0 %
testGCHeapBarriers.cpp We don't actually use the function as a function, so here we cheat and cast a JSObject. 23820 0 %
testGCHooks.cpp 11468 0 %
testGCMarking.cpp 14879 0 %
testGCOutOfMemory.cpp Check that we get OOM. 2442 0 %
testGCStoreBufferRemoval.cpp 3146 0 %
testGCUniqueId.cpp 3730 0 %
testGCWeakCache.cpp 21868 0 %
testGetPropertyDescriptor.cpp 2017 0 %
testHashTable.cpp The rekeying test as conducted by adding only keys masked with 0x0000FFFF that are unique. We rekey by shifting left 16 bits. 12482 0 %
testIndexToString.cpp 2990 0 %
testInformalValueTypeName.cpp 1604 0 %
testInt128.cpp 17274 0 %
testIntern.cpp Try to pick a string that won't be interned by other tests in this runtime. 1533 0 %
testIntlAvailableLocales.cpp 2335 0 %
testIntString.cpp Test other types of static strings. 1553 0 %
testIsCompilableUnit.cpp 2308 0 %
testIsInsideNursery.cpp Non-GC things are never inside the nursery. 3968 0 %
testIsISOStyleDate.cpp 1745 0 %
testIteratorObject.cpp 1111 0 %
testJitABIcalls.cpp 30800 0 %
testJitDCEinGVN.cpp 4145 0 %
testJitFoldsTo.cpp 6935 0 %
testJitGVN.cpp 10895 0 %
testJitMacroAssembler.cpp 31660 0 %
testJitMinimalFunc.h 2978 0 %
testJitMoveEmitterCycles.cpp 24704 -
testJitRangeAnalysis.cpp 12746 0 %
testJitRegisterSet.cpp 5976 0 %
testJitRValueAlloc.cpp _(JSVAL_TYPE_DOUBLE) 9836 0 %
testJSEvaluateScript.cpp 1042 0 %
testJSON.cpp 2925 0 %
testLargeArrayBuffers.cpp 5144 0 %
testLightLock.cpp 3503 0 %
testLinkedList.cpp 5790 0 %
testLookup.cpp 3021 0 %
testLooselyEqual.cpp 4841 0 %
testMappedArrayBuffer.cpp 5211 0 %
testMapSet.cpp 4384 0 %
testMemoryAssociation.cpp 1348 0 %
testMutedErrors.cpp NB: uncaught exceptions, when reported, have nothing on the stack so both the filename and mutedErrors are empty. E.g., this would fail: CHECK(testError("throw 3")); 3324 0 %
testNewObject.cpp 7383 0 %
testNewTargetInvokeConstructor.cpp 677 0 %
testNullRoot.cpp 547 0 %
testNumberToString.cpp 4101 0 %
testObjectEmulatingUndefined.cpp 3421 0 %
testObjectSwap.cpp Test JSObject::swap. This test creates objects from a description of their configuration. Objects are given unique property names and values. A list of configurations is created and the result of swapping every combination checked. 13209 0 %
testObjectWithStashedPointer.cpp 1224 0 %
testOOM.cpp 3507 0 %
testParseJSON.cpp 10914 0 %
testParserAtom.cpp 14579 0 %
testPersistentRooted.cpp 5715 0 %
testPreserveJitCode.cpp 3228 0 %
testPrinter.cpp 3079 0 %
testPrintError.cpp 3380 0 %
testPrintf.cpp 2195 0 %
testPrivateGCThingValue.cpp 1851 0 %
testProfileStrings.cpp Tests the stack-based instrumentation profiler on a JSRuntime 7570 0 %
testPromise.cpp 3916 0 %
testPropCache.cpp name 1278 0 %
testPropertyKey.cpp 2441 0 %
testRegExp.cpp 1702 0 %
testResolveRecursion.cpp Test that resolve hook recursion for the same object and property is prevented. 5795 0 %
testResult.cpp 2681 0 %
tests.cpp static 16628 0 %
tests.h 11917 0 %
testSABAccounting.cpp 931 0 %
testSameValue.cpp NB: passing a double that fits in an integer jsval is API misuse. As a matter of defense in depth, however, JS::SameValue should return the correct result comparing a positive-zero double to a negative-zero double, and this is believed to be the only way to make such a comparison possible. 847 0 %
testSavedStacks.cpp 14471 0 %
testScriptInfo.cpp 1432 0 %
testScriptObject.cpp After a garbage collection, the script should still work. 6857 0 %
testScriptSourceCompression.cpp 17045 0 %
testSetProperty.cpp 1883 0 %
testSetPropertyIgnoringNamedGetter.cpp 2198 0 %
testSharedImmutableStringsCache.cpp 2015 0 %
testSinglyLinkedList.cpp 5114 0 %
testsJit.cpp 3090 0 %
testsJit.h !jsapi_tests_testsJit_h 647 -
testSliceBudget.cpp 4395 0 %
testSlowScript.cpp 1990 0 %
testSortedArenaList.cpp 4659 0 %
testSourcePolicy.cpp 1791 0 %
testSparseBitmap.cpp 4630 0 %
testStencil.cpp /" "/************************************* 10652 0 %
testStringBuffers.cpp 5344 0 %
testStringBuilder.cpp 733 0 %
testStringIsArrayIndex.cpp The string being tested. 2369 0 %
testStructuredClone.cpp 11170 0 %
testSymbol.cpp 2315 0 %
testThreadingConditionVariable.cpp 6181 0 %
testThreadingExclusiveData.cpp 2200 0 %
testThreadingMutex.cpp 1347 0 %
testThreadingThread.cpp 3132 0 %
testToSignedOrUnsignedInteger.cpp 2002 0 %
testTraceableFifoValue.cpp 8669 0 %
testTypedArrays.cpp 12945 0 %
testUbiNode.cpp 30381 0 %
testUncaughtSymbol.cpp 1679 0 %
testUTF8.cpp 6303 0 %
testValueABI.cpp Bug 689101 - jsval is technically a non-POD type because it has a private data member. On gcc, this doesn't seem to matter. On MSVC, this prevents returning a jsval from a function between C and C++ because it will use a retparam in C++ and a direct return value in C. Bug 712289 - jsval alignment was different on 32-bit platforms between C and C++ because the default alignments of js::Value and jsval_layout differ. 1516 -
testWasmEncoder.cpp maybeTier2Listener= 4222 0 %
testWasmLEB128.cpp 3718 0 %
testWasmMasm.cpp 1899 0 %
testWasmRefSubtypes.cpp 18404 0 %
testWasmReturnCalls.cpp 2396 0 %
testWeakMap.cpp Perform an incremental GC, introducing an unmarked CCW to force the map zone to finish marking before the delegate zone. 8739 0 %
testWindowNonConfigurable.cpp 2305 0 %
valueABI.c See testValueABI.cpp 565 -