Home
last modified time | relevance | path

Searched refs:expectedErrors (Results 1 – 8 of 8) sorted by relevance

/third_party/typescript/src/testRunner/unittests/tsserver/
DprojectErrors.ts3 …eckProjectErrors(projectFiles: server.ProjectFilesWithTSDiagnostics, expectedErrors: readonly stri…
5 checkProjectErrorsWorker(projectFiles.projectErrors, expectedErrors);
8 …function checkProjectErrorsWorker(errors: readonly Diagnostic[], expectedErrors: readonly string[]…
9 …assert.equal(errors ? errors.length : 0, expectedErrors.length, `expected ${expectedErrors.length}…
10 if (expectedErrors.length) {
13 const expectedMessage = expectedErrors[i];
19 …osticsWithLinePos(errors: server.protocol.DiagnosticWithLinePosition[], expectedErrors: string[]) {
20 …assert.equal(errors ? errors.length : 0, expectedErrors.length, `expected ${expectedErrors.length}…
21 if (expectedErrors.length) {
22 zipWith(errors, expectedErrors, ({ message: actualMessage }, expectedMessage) => {
/third_party/parse5/test/utils/
Dgenerate-tokenization-tests.ts80 this.testData.expectedErrors.some(
163 expectedErrors: TokenError[]; property
208 expectedErrors: descr.errors || [],
230 assert.deepEqual(result.errors, testData.expectedErrors || []);
Dparse-dat-file.ts30 expectedErrors: string[]; property
62 expectedErrors: descr['#new-errors'] || [],
Dgenerate-parsing-tests.ts114 assert.deepEqual(errs.sort(), test.expectedErrors.sort());
/third_party/typescript/src/testRunner/unittests/config/
DconvertCompilerOptionsFromJson.ts62 …function verifyErrors(actualErrors: Diagnostic[], expectedErrors: readonly Diagnostic[], ignoreLoc…
63 …assert.isTrue(expectedErrors.length === actualErrors.length, `Expected error: ${JSON.stringify(exp…
66 const expectedError = expectedErrors[i];
DconvertTypeAcquisitionFromJson.ts16 const expectedErrors = expectedResult.errors; constant
20 const expectedError = expectedErrors[i];
/third_party/typescript/src/testRunner/unittests/services/extract/
Dranges.ts2 function testExtractRangeFailed(caption: string, s: string, expectedErrors: string[]) {
12 assert.deepEqual(sortedErrors, expectedErrors.sort(), "unexpected errors");
/third_party/typescript/src/testRunner/unittests/
DreuseProgramStructure.ts661 let expectedErrors = 0; variable
691 … assert.lengthOf(program1Diagnostics, expectedErrors, `initial program should be well-formed`);
701 …assert.lengthOf(program2Diagnostics, expectedErrors, `removing no-default-lib shouldn't affect any…
730 …assert.lengthOf(program3Diagnostics, expectedErrors, `typerefs2 was unused, so diagnostics should …
755 …assert.lengthOf(program4Diagnostics, expectedErrors, `a1.ts was unused, so diagnostics should be u…
779 …assert.lengthOf(program5Diagnostics, ++expectedErrors, `import of BB in f1 fails. BB is of type an…
796 assert.lengthOf(program6Diagnostics, expectedErrors, `import of BB in f1 fails.`);
820 …assert.lengthOf(program7Diagnostics, expectedErrors, `removing import is noop with respect to prog…