/third_party/typescript/src/testRunner/unittests/config/ |
D | tsconfigParsingWatchOptions.ts | 48 expectedErrors?: (sourceFile?: SourceFile) => Diagnostic[]; property 53 …onst { json, expectedOptions, additionalFiles, existingWatchOptions, expectedErrors } of scenario(… constant 57 assert.deepEqual(parsed.errors, expectedErrors?.()); 60 assert.equal(0, length(expectedErrors?.()), `Expected no errors`); 66 …onst { json, expectedOptions, additionalFiles, existingWatchOptions, expectedErrors } of scenario(… constant 70 … assert.deepEqual(parsed.errors, expectedErrors?.(parsed.options.configFile)); 73 … assert.equal(0, length(expectedErrors?.(parsed.options.configFile)), `Expected no errors`); 184 expectedErrors: sourceFile => [ 200 expectedErrors: sourceFile => [
|
D | commandLineParsing.ts | 10 const expectedErrors = expectedParsedCommandLine.errors; constant 11 …assert.isTrue(parsedErrors.length === expectedErrors.length, `Expected error: ${JSON.stringify(exp… 14 const expectedError = expectedErrors[i]; 734 const expectedErrors = expectedParsedBuildCommand.errors; constant 735 …assert.isTrue(parsedErrors.length === expectedErrors.length, `Expected error: ${JSON.stringify(exp… 738 const expectedError = expectedErrors[i];
|
D | convertCompilerOptionsFromJson.ts | 62 …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];
|
D | convertTypeAcquisitionFromJson.ts | 16 const expectedErrors = expectedResult.errors; constant 20 const expectedError = expectedErrors[i];
|
/third_party/parse5/test/utils/ |
D | generate-tokenization-tests.ts | 80 this.testData.expectedErrors.some( 163 expectedErrors: TokenError[]; property 208 expectedErrors: descr.errors || [], 230 assert.deepEqual(result.errors, testData.expectedErrors || []);
|
D | parse-dat-file.ts | 30 expectedErrors: string[]; property 62 expectedErrors: descr['#new-errors'] || [],
|
D | generate-parsing-tests.ts | 114 assert.deepEqual(errs.sort(), test.expectedErrors.sort());
|
/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | projectErrors.ts | 3 …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) => {
|
D | helpers.ts | 683 const expectedErrors = expected.map(getProtocolDiagnosticMessage); constant 684 …ssert.deepEqual(actual.map(diag => flattenDiagnosticMessageText(diag.text, "\n")), expectedErrors);
|
/third_party/typescript/src/testRunner/unittests/services/extract/ |
D | ranges.ts | 2 function testExtractRangeFailed(caption: string, s: string, expectedErrors: string[]) { 12 assert.deepEqual(sortedErrors, expectedErrors.sort(), "unexpected errors");
|
/third_party/typescript/src/testRunner/unittests/ |
D | reuseProgramStructure.ts | 632 let expectedErrors = 0; variable 662 … assert.lengthOf(program1Diagnostics, expectedErrors, `initial program should be well-formed`); 672 …assert.lengthOf(program2Diagnostics, expectedErrors, `removing no-default-lib shouldn't affect any… 701 …assert.lengthOf(program3Diagnostics, expectedErrors, `typerefs2 was unused, so diagnostics should … 726 …assert.lengthOf(program4Diagnostics, expectedErrors, `a1.ts was unused, so diagnostics should be u… 750 …assert.lengthOf(program5Diagnostics, ++expectedErrors, `import of BB in f1 fails. BB is of type an… 767 assert.lengthOf(program6Diagnostics, expectedErrors, `import of BB in f1 fails.`); 791 …assert.lengthOf(program7Diagnostics, expectedErrors, `removing import is noop with respect to prog…
|