Home
last modified time | relevance | path

Searched refs:expectedError (Results 1 - 25 of 38) sorted by relevance

12

/third_party/node/test/parallel/
H A Dtest-fs-assert-encoding-error.js10 const expectedError = {
17 }, expectedError);
21 }, expectedError);
25 }, expectedError);
29 }, expectedError);
33 }, expectedError);
37 }, expectedError);
41 }, expectedError);
45 }, expectedError);
49 }, expectedError);
[all...]
H A Dtest-diagnostics-channel-tracing-channel-async-error.js9 const expectedError = new Error('test');
24 assert.deepStrictEqual(found.error, expectedError);
34 assert.strictEqual(err, expectedError);
36 }), expectedError);
41 }, input, thisArg, expectedError).then(
44 assert.deepStrictEqual(value, expectedError);
H A Dtest-diagnostics-channel-tracing-channel-sync-error.js9 const expectedError = new Error('test');
24 assert.deepStrictEqual(found.error, expectedError);
32 assert.strictEqual(err, expectedError);
34 }, input, thisArg, expectedError);
38 assert.deepStrictEqual(error, expectedError);
H A Dtest-fs-access.js94 const expectedError = (err) => {
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))
H A Dtest-child-process-validate-stdio.js8 const expectedError = { code: 'ERR_INVALID_ARG_VALUE', name: 'TypeError' };
11 assert.throws(() => getValidStdio('foo'), expectedError);
14 assert.throws(() => getValidStdio(600), expectedError);
43 assert.throws(() => getValidStdio(stdio), expectedError);
H A Dtest-whatwg-encoding-custom-interop.js48 const expectedError = {
60 assert.throws(() => inspectFn.call(i, Infinity, {}), expectedError);
61 assert.throws(() => encodeFn.call(i), expectedError);
62 assert.throws(() => encodingGetter.call(i), expectedError);
H A Dtest-whatwg-encoding-custom-textdecoder.js176 const expectedError = {
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);
H A Dtest-whatwg-url-custom-domainto.js20 const expectedError = { code: 'ERR_MISSING_ARGS', name: 'TypeError' };
21 assert.throws(() => domainToASCII(), expectedError);
22 assert.throws(() => domainToUnicode(), expectedError);
H A Dtest-vm-module-errors.js243 const expectedError = {
252 }, expectedError);
256 }, expectedError);
262 }, expectedError);
H A Dtest-whatwg-url-custom-parsing.js51 const expectedError = { code: 'ERR_INVALID_URL', name: 'TypeError' };
57 assert.throws(() => { throw error; }, expectedError);
/third_party/node/test/fixtures/test-runner/
H A Drun_inspect.js10 let expectedError;
16 expectedError = badPortError;
21 expectedError = badPortError;
24 expectedError = badPortError;
27 expectedError = badPortError;
30 expectedError = badPortError;
34 if (expectedError) {
36 assert.deepStrictEqual({ name: details.error.cause.name, code: details.error.cause.code }, expectedError);
/third_party/icu/icu4c/source/tools/ctestfw/
H A 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/icu/source/tools/ctestfw/
H A 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/
H A 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/angle2/src/tests/compiler_tests/
H A DEmulateGLBaseVertexBaseInstance_test.cpp29 const char *expectedError = nullptr, in CheckCompileFailure()
38 if (expectedError) in CheckCompileFailure()
40 EXPECT_TRUE(infoLog.find(expectedError) != std::string::npos); in CheckCompileFailure()
H A DEmulateGLDrawID_test.cpp28 void CheckCompileFailure(const std::string &shaderString, const char *expectedError = nullptr) in CheckCompileFailure()
36 if (expectedError) in CheckCompileFailure()
38 EXPECT_TRUE(infoLog.find(expectedError) != std::string::npos); in CheckCompileFailure()
/third_party/node/test/fixtures/wpt/WebCryptoAPI/generateKey/
H A Dfailures.js71 function testError(algorithm, extractable, usages, expectedError, testTag) {
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/gl/
H A Dgl4cSparseTextureTests.cpp57 * @param expectedError Expected error code
62 GLint error, GLint expectedError) in verifyQueryError()
64 if (error != expectedError) in verifyQueryError()
67 << ", target: " << target << ", pname: " << pname << ", expected: " << expectedError in verifyQueryError()
81 * @param expectedError Expected error code
85 bool SparseTextureUtils::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()
425 * @param expectedError Expecte
61 verifyQueryError(std::stringstream& log, const char* funcName, GLint target, GLint pname, GLint error, GLint expectedError) verifyQueryError() argument
429 testTextureSparseARB(const Functions& gl, GLint target, GLint expectedError) testTextureSparseARB() argument
559 testVirtualPageSizeIndexARB(const Functions& gl, GLint target, GLint expectedError) testVirtualPageSizeIndexARB() argument
[all...]
H A Dgl4cSparseTextureTests.hpp68 GLint expectedError);
70 static 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_ERROR);
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_cube_map_array/
H A DesextcTextureCubeMapArrayTex3DValidation.cpp198 * @param expectedError anticipated error code.
202 * @return returns true if error return by glGetError() is equal expectedError, false otherwise
204 bool TextureCubeMapArrayTex3DValidation::checkError(glw::GLint expectedError, const char* message) in checkError() argument
210 if (error != expectedError) in checkError()
212 m_testCtx.getLog() << tcu::TestLog::Message << message << " Expected error: " << glu::getErrorStr(expectedError) in checkError()
/third_party/icu/icu4c/source/tools/ctestfw/unicode/
H A 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/
H A Dtestlog.h44 UBool expectErrorAndReset(UErrorCode expectedError);
45 UBool expectErrorAndReset(UErrorCode expectedError, const char *fmt, ...);
/third_party/node/test/fixtures/wpt/WebCryptoAPI/import_export/
H A Dokp_importKey_failures.js61 function testError(format, algorithm, keyData, keySize, usages, extractable, expectedError, testTag) {
67 let actualError = typeof expectedError === "number" ? err.code : err.name;
68 assert_equals(actualError, expectedError, testTag + " not supported.");
/third_party/icu/icu4c/source/test/cintltst/
H A Dnccbtst.h61 const char *mySubChar, int8_t len, const void* context, UErrorCode expectedError);
65 const char *mySubChar, int8_t len, const void* context, UErrorCode expectedError);
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcRobustnessTests.cpp219 bool verifyError(glw::GLint error, glw::GLint expectedError, const char* method);
373 bool GetnUniformTest::verifyError(GLint error, GLint expectedError, const char* method) in verifyError() argument
375 if (error != expectedError) in verifyError()
406 bool verifyError(glw::GLint error, glw::GLint expectedError, const char* method);
613 * @param expectedError Expected error code
618 bool ReadnPixelsTest::verifyError(GLint error, GLint expectedError, const char* method) in verifyError() argument
620 if (error != expectedError) in verifyError()

Completed in 10 milliseconds

12