Home
last modified time | relevance | path

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

123

/third_party/node/test/parallel/
Dtest-fs-assert-encoding-error.js7 const expectedError = { variable
14 }, expectedError);
18 }, expectedError);
22 }, expectedError);
26 }, expectedError);
30 }, expectedError);
34 }, expectedError);
38 }, expectedError);
42 }, expectedError);
46 }, expectedError);
[all …]
Dtest-fs-access.js93 const expectedError = (err) => { function
98 fs.access(doesNotExist, common.mustCall(expectedError));
100 .then(common.mustNotCall(), common.mustCall(expectedError))
105 function expectedError(err) {
114 fs.access(readOnlyFile, fs.W_OK, common.mustCall(expectedError));
116 .then(common.mustNotCall(), common.mustCall(expectedError))
121 const expectedError = (err) => {
128 expectedError
132 .then(common.mustNotCall(), common.mustCall(expectedError))
Dtest-child-process-validate-stdio.js8 const expectedError = { code: 'ERR_INVALID_OPT_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.js163 const expectedError = { variable
177 assert.throws(() => inspectFn.call(i, Infinity, {}), expectedError);
178 assert.throws(() => decodeFn.call(i), expectedError);
179 assert.throws(() => encodingGetter.call(i), expectedError);
180 assert.throws(() => fatalGetter.call(i), expectedError);
181 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-internal-util-assertCrypto.js8 const expectedError = common.expectsError({ constant
12 assert.throws(() => util.assertCrypto(), expectedError);
Dtest-vm-module-errors.js238 const expectedError = { variable
247 }, expectedError);
251 }, expectedError);
257 }, expectedError);
Dtest-dgram-send-address-types.js25 const expectedError = { variable
31 assert.throws(() => client.send(buf, port, invalidInput), expectedError);
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DSRGBFramebufferTest.cpp46 GLenum expectedError = in TEST_P() local
51 EXPECT_GL_ERROR(expectedError); in TEST_P()
54 EXPECT_GL_ERROR(expectedError); in TEST_P()
55 if (expectedError == GL_NO_ERROR) in TEST_P()
61 EXPECT_GL_ERROR(expectedError); in TEST_P()
64 EXPECT_GL_ERROR(expectedError); in TEST_P()
65 if (expectedError == GL_NO_ERROR) in TEST_P()
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestautomation_sdltest.c156 const char *expectedError = "That operation is not supported"; in sdltest_randomBoundaryNumberUint8() local
248 SDLTest_AssertCheck(lastError != NULL && SDL_strcmp(lastError, expectedError) == 0, in sdltest_randomBoundaryNumberUint8()
250 expectedError, in sdltest_randomBoundaryNumberUint8()
266 const char *expectedError = "That operation is not supported"; in sdltest_randomBoundaryNumberUint16() local
358 SDLTest_AssertCheck(lastError != NULL && SDL_strcmp(lastError, expectedError) == 0, in sdltest_randomBoundaryNumberUint16()
360 expectedError, in sdltest_randomBoundaryNumberUint16()
376 const char *expectedError = "That operation is not supported"; in sdltest_randomBoundaryNumberUint32() local
468 SDLTest_AssertCheck(lastError != NULL && SDL_strcmp(lastError, expectedError) == 0, in sdltest_randomBoundaryNumberUint32()
470 expectedError, in sdltest_randomBoundaryNumberUint32()
486 const char *expectedError = "That operation is not supported"; in sdltest_randomBoundaryNumberUint64() local
[all …]
Dtestautomation_keyboard.c113 const char *expectedError = "Parameter 'scancode' is invalid"; in _checkInvalidScancodeError() local
119 SDLTest_AssertCheck(SDL_strcmp(error, expectedError) == 0, in _checkInvalidScancodeError()
120 "Validate error message, expected: '%s', got: '%s'", expectedError, error); in _checkInvalidScancodeError()
483 const char *expectedError = "Parameter 'rect' is invalid"; in keyboard_setTextInputRectNegative() local
500 SDLTest_AssertCheck(SDL_strcmp(error, expectedError) == 0, in keyboard_setTextInputRectNegative()
501 "Validate error message, expected: '%s', got: '%s'", expectedError, error); in keyboard_setTextInputRectNegative()
595 const char *expectedError = "Parameter 'name' is invalid"; in _checkInvalidNameError() local
601 SDLTest_AssertCheck(SDL_strcmp(error, expectedError) == 0, in _checkInvalidNameError()
602 "Validate error message, expected: '%s', got: '%s'", expectedError, error); in _checkInvalidNameError()
/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…
DcommandLineParsing.ts14 const expectedError = expectedErrors[i]; constant
15 assert.equal(parsedError.code, expectedError.code);
16 assert.equal(parsedError.category, expectedError.category);
18 …if (typeof expectedError.messageText === "string" && expectedError.messageText.includes("[...]")) {
19 const prefix = expectedError.messageText.split("[...]")[0];
20 assert(expectedError.messageText.startsWith(prefix));
23 assert.equal(parsedError.messageText, expectedError.messageText);
738 const expectedError = expectedErrors[i]; constant
739 assert.equal(parsedError.code, expectedError.code);
740 assert.equal(parsedError.category, expectedError.category);
[all …]
/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/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/flutter/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/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/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/flutter/skia/third_party/externals/angle2/src/tests/compiler_tests/
DEmulateGLBaseVertexBaseInstance_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()
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()
/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 …]

123