Home
last modified time | relevance | path

Searched refs:expectedError (Results 1 – 25 of 45) sorted by relevance

12

/third_party/node/test/parallel/
Dtest-fs-assert-encoding-error.js10 const expectedError = { variable
17 }, expectedError);
21 }, expectedError);
25 }, expectedError);
29 }, expectedError);
33 }, expectedError);
37 }, expectedError);
41 }, expectedError);
45 }, expectedError);
49 }, expectedError);
[all …]
Dtest-fs-access.js94 const expectedError = (err) => { function
99 fs.access(doesNotExist, common.mustCall(expectedError));
101 .then(common.mustNotCall(), common.mustCall(expectedError))
106 function expectedError(err) {
115 fs.access(readOnlyFile, fs.W_OK, common.mustCall(expectedError));
117 .then(common.mustNotCall(), common.mustCall(expectedError))
122 const expectedError = (err) => {
129 expectedError
133 .then(common.mustNotCall(), common.mustCall(expectedError))
Dtest-child-process-validate-stdio.js8 const expectedError = { code: 'ERR_INVALID_ARG_VALUE', name: 'TypeError' }; variable
11 assert.throws(() => getValidStdio('foo'), expectedError);
14 assert.throws(() => getValidStdio(600), expectedError);
43 assert.throws(() => getValidStdio(stdio), expectedError);
Dtest-whatwg-encoding-custom-interop.js48 const expectedError = { variable
60 assert.throws(() => inspectFn.call(i, Infinity, {}), expectedError);
61 assert.throws(() => encodeFn.call(i), expectedError);
62 assert.throws(() => encodingGetter.call(i), expectedError);
Dtest-whatwg-encoding-custom-textdecoder.js176 const expectedError = { variable
190 assert.throws(() => inspectFn.call(i, Infinity, {}), expectedError);
191 assert.throws(() => decodeFn.call(i), expectedError);
192 assert.throws(() => encodingGetter.call(i), expectedError);
193 assert.throws(() => fatalGetter.call(i), expectedError);
194 assert.throws(() => ignoreBOMGetter.call(i), expectedError);
Dtest-child-process-uid-gid.js5 const expectedError = common.isWindows ? /\bENOTSUP\b/ : /\bEPERM\b/; constant
13 }, expectedError);
19 }, expectedError);
Dtest-http-res-write-end-dont-take-array.js38 const expectedError = { variable
48 expectedError
56 expectedError
Dtest-whatwg-url-custom-domainto.js20 const expectedError = { code: 'ERR_MISSING_ARGS', name: 'TypeError' }; variable
21 assert.throws(() => domainToASCII(), expectedError);
22 assert.throws(() => domainToUnicode(), expectedError);
Dtest-vm-module-errors.js243 const expectedError = { variable
252 }, expectedError);
256 }, expectedError);
262 }, expectedError);
Dtest-internal-util-assertCrypto.js8 const expectedError = common.expectsError({ constant
12 assert.throws(() => util.assertCrypto(), expectedError);
Dtest-dgram-send-address-types.js37 const expectedError = { variable
43 assert.throws(() => client.send(buf, port, invalidInput), expectedError);
Dtest-abortsignal-any.mjs8 const expectedError = { code: 'ERR_INVALID_ARG_TYPE' }; variable
9 assert.throws(() => AbortSignal.any(), expectedError);
10 assert.throws(() => AbortSignal.any(null), expectedError);
11 assert.throws(() => AbortSignal.any(undefined), expectedError);
/third_party/node/test/fixtures/test-runner/
Drun_inspect.js10 let expectedError; variable
16 expectedError = badPortError;
21 expectedError = badPortError;
24 expectedError = badPortError;
27 expectedError = badPortError;
30 expectedError = badPortError;
34 if (expectedError) {
36 …deepStrictEqual({ name: details.error.cause.name, code: details.error.cause.code }, expectedError);
/third_party/typescript/src/testRunner/unittests/config/
DconvertTypeAcquisitionFromJson.ts20 const expectedError = expectedErrors[i]; constant
21 …assert.equal(actualError.code, expectedError.code, `Expected error-code: ${JSON.stringify(expected…
22 …assert.equal(actualError.category, expectedError.category, `Expected error-category: ${JSON.string…
/third_party/icu/icu4c/source/tools/ctestfw/
Dtstdtmod.cpp82 UBool IcuTestErrorCode::expectErrorAndReset(UErrorCode expectedError) { in expectErrorAndReset() argument
83 if(get() != expectedError) { in expectErrorAndReset()
84 errlog(false, UnicodeString(u"expected: ") + u_errorName(expectedError), nullptr); in expectErrorAndReset()
91 UBool IcuTestErrorCode::expectErrorAndReset(UErrorCode expectedError, const char *fmt, ...) { in expectErrorAndReset() argument
92 if(get() != expectedError) { in expectErrorAndReset()
98 errlog(false, UnicodeString(u"expected: ") + u_errorName(expectedError), buffer); in expectErrorAndReset()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DSRGBFramebufferTest.cpp55 GLenum expectedError = in TEST_P() local
60 EXPECT_GL_ERROR(expectedError); in TEST_P()
63 EXPECT_GL_ERROR(expectedError); in TEST_P()
64 if (expectedError == GL_NO_ERROR) in TEST_P()
70 EXPECT_GL_ERROR(expectedError); in TEST_P()
73 EXPECT_GL_ERROR(expectedError); in TEST_P()
74 if (expectedError == GL_NO_ERROR) in TEST_P()
/third_party/skia/third_party/externals/icu/source/tools/ctestfw/
Dtstdtmod.cpp82 UBool IcuTestErrorCode::expectErrorAndReset(UErrorCode expectedError) { in expectErrorAndReset() argument
83 if(get() != expectedError) { in expectErrorAndReset()
84 errlog(FALSE, UnicodeString(u"expected: ") + u_errorName(expectedError), nullptr); in expectErrorAndReset()
91 UBool IcuTestErrorCode::expectErrorAndReset(UErrorCode expectedError, const char *fmt, ...) { in expectErrorAndReset() argument
92 if(get() != expectedError) { in expectErrorAndReset()
98 errlog(FALSE, UnicodeString(u"expected: ") + u_errorName(expectedError), buffer); in expectErrorAndReset()
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cSparseTextureTests.cpp62 GLint error, GLint expectedError) in verifyQueryError() argument
64 if (error != expectedError) in verifyQueryError()
67 << ", target: " << target << ", pname: " << pname << ", expected: " << expectedError in verifyQueryError()
85 …eUtils::verifyError(std::stringstream& log, const char* funcName, GLint error, GLint expectedError) in verifyError() argument
87 if (error != expectedError) in verifyError()
90 << ", expectedError: " << expectedError << ", returnedError: " << error << "] - "; in verifyError()
429 …ameterQueriesTestCase::testTextureSparseARB(const Functions& gl, GLint target, GLint expectedError) in testTextureSparseARB() argument
442 if (expectedError == GL_NO_ERROR) in testTextureSparseARB()
450 if (expectedError == GL_NO_ERROR) in testTextureSparseARB()
461 expectedError); in testTextureSparseARB()
[all …]
Dgl4cSparseTextureTests.hpp68 GLint expectedError);
70 …c bool verifyError(std::stringstream& log, const char* funcName, GLint error, GLint expectedError);
133 bool testTextureSparseARB(const Functions& gl, GLint target, GLint expectedError = GL_NO_ERROR);
134 …bool testVirtualPageSizeIndexARB(const Functions& gl, GLint target, GLint expectedError = GL_NO_ER…
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
DEmulateGLDrawID_test.cpp28 void CheckCompileFailure(const std::string &shaderString, const char *expectedError = nullptr) in CheckCompileFailure() argument
36 if (expectedError) in CheckCompileFailure()
38 EXPECT_TRUE(infoLog.find(expectedError) != std::string::npos); in CheckCompileFailure()
DEmulateGLBaseVertexBaseInstance_test.cpp29 const char *expectedError = nullptr, in CheckCompileFailure() argument
38 if (expectedError) in CheckCompileFailure()
40 EXPECT_TRUE(infoLog.find(expectedError) != std::string::npos); in CheckCompileFailure()
/third_party/node/test/fixtures/wpt/WebCryptoAPI/generateKey/
Dfailures.js71 function testError(algorithm, extractable, usages, expectedError, testTag) { argument
77 if (typeof expectedError === "number") {
78 assert_equals(err.code, expectedError, testTag + " not supported");
80 assert_equals(err.name, expectedError, testTag + " not supported");
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_cube_map_array/
DesextcTextureCubeMapArrayTex3DValidation.cpp204 bool TextureCubeMapArrayTex3DValidation::checkError(glw::GLint expectedError, const char* message) in checkError() argument
210 if (error != expectedError) in checkError()
212 …Log() << tcu::TestLog::Message << message << " Expected error: " << glu::getErrorStr(expectedError) in checkError()
/third_party/icu/icu4c/source/tools/ctestfw/unicode/
Dtestlog.h44 UBool expectErrorAndReset(UErrorCode expectedError);
45 UBool expectErrorAndReset(UErrorCode expectedError, const char *fmt, ...);
/third_party/skia/third_party/externals/icu/source/tools/ctestfw/unicode/
Dtestlog.h44 UBool expectErrorAndReset(UErrorCode expectedError);
45 UBool expectErrorAndReset(UErrorCode expectedError, const char *fmt, ...);

12