/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | privateNameFieldUnaryMutation.ts | 22 #test: number = 24; 24 this.#test++; 25 AssertType(this.#test++, "number"); 26 AssertType(this.#test, "number"); 29 this.#test--; 30 AssertType(this.#test--, "number"); 31 AssertType(this.#test, "number"); 34 ++this.#test; 35 AssertType(++this.#test, "number"); 36 AssertType(this.#test, "number"); [all …]
|
D | privateNameStaticFieldUnaryMutation.ts | 22 static #test: number = 24; 24 C.#test++; 25 AssertType(C.#test++, "number"); 26 AssertType(C.#test, "number"); 28 C.#test--; 29 AssertType(C.#test--, "number"); 30 AssertType(C.#test, "number"); 32 ++C.#test; 33 AssertType(++C.#test, "number"); 34 AssertType(C.#test, "number"); [all …]
|
D | controlFlowManyCallExpressionStatementsPerf.ts | 21 function test(x: boolean): boolean { 31 test(state as any && state); 32 AssertType(test(state as any && state), "boolean"); 33 AssertType(test, "(boolean) => boolean"); 39 test(state as any && state); 40 AssertType(test(state as any && state), "boolean"); 41 AssertType(test, "(boolean) => boolean"); 47 test(state as any && state); 48 AssertType(test(state as any && state), "boolean"); 49 AssertType(test, "(boolean) => boolean"); [all …]
|
D | controlFlowPrivateClassField.ts | 22 #test; 24 constructor(test: number) { 25 this.#test = test; 26 AssertType(this.#test = test, "number"); 27 AssertType(this.#test, "number"); 29 AssertType(test, "number"); 32 get test() { 33 AssertType(this.#test, "number"); 35 return this.#test 40 #test; [all …]
|
D | thisTypeSyntacticContext.ts | 24 const o: { n: number, test?: (this: { n: number }) => void } = { n: 1 constant 29 AssertType(test, "({ n: number;}) => void"); 42 o.test = f 43 AssertType(o.test = f, "({ n: number; }) => void"); 44 AssertType(o.test, "({ n: number; }) => void"); 47 o.test(); 48 AssertType(o.test(), "void"); 49 AssertType(o.test, "({ n: number; }) => void"); 51 o!.test(); 52 AssertType(o!.test(), "void"); [all …]
|
D | constIndexedAccess.ts | 31 let test: indexAccess; variable 32 AssertType(test, "indexAccess"); 34 let s = test[0]; 36 AssertType(test[0], "string"); 37 AssertType(test, "indexAccess"); 40 let n = test[1]; 42 AssertType(test[1], "number"); 43 AssertType(test, "indexAccess"); 46 let s1 = test[numbers.zero]; 48 AssertType(test[numbers.zero], "string"); [all …]
|
D | arrowFunctionParsingGenericInObject.ts | 23 AssertType(() => ({ test: <T = undefined>(value: T): T => value, extraValue: () => {},}), "()… 24 AssertType(({ test: <T = undefined>(value: T): T => value, extraValue: () => {},}), "{ test: … 25 AssertType({ test: <T = undefined>(value: T): T => value, extraValue: () => {},}, "{ test: <T… 27 test: <T = undefined>(value: T): T => value, 28 AssertType(test, "<T = undefined>(T) => T"); 41 AssertType(() => ({ test: async <T = undefined>(value: T): Promise<T> => value, extraValue: (… 42 AssertType(({ test: async <T = undefined>(value: T): Promise<T> => value, extraValue: () => {… 43 AssertType({ test: async <T = undefined>(value: T): Promise<T> => value, extraValue: () => {}… 45 test: async <T = undefined>(value: T): Promise<T> => value, 46 AssertType(test, "<T = undefined>(T) => Promise<T>"); [all …]
|
D | typePredicateWithThisParameter.ts | 44 declare let test: Foo | Bar; variable 45 AssertType(test, "union"); 47 if (isFoo1(test)) { 48 test.foo = 'hi'; 49 AssertType(test.foo = 'hi', "string"); 50 AssertType(test.foo, "string"); 54 if (isFoo2(test)) { 55 test.foo = 'hi'; 56 AssertType(test.foo = 'hi', "string"); 57 AssertType(test.foo, "string");
|
D | inferenceAndSelfReferentialConstraint.ts | 29 function test<T extends Test<keyof T>>(arg: T) { function 34 const res1 = test({ 36 AssertType(test({ foo: true, bar() { }}), "{ foo: true; bar(): void; }"); 37 AssertType(test, "<T extends Test<keyof T>>(T) => T"); 49 const res2 = test({ 51 AssertType(test({ foo: true, bar: function () { }}), "{ foo: true; bar: () => void; }"); 52 AssertType(test, "<T extends Test<keyof T>>(T) => T"); 65 const res3 = test({ 67 AssertType(test({ foo: true, bar: () => { }}), "{ foo: true; bar: () => void; }"); 68 AssertType(test, "<T extends Test<keyof T>>(T) => T");
|
D | bigintMissingESNext.ts | 21 declare function test<A, B extends A>(): void; 23 test<{t?: string}, object>(); 24 AssertType(test<{t?: string}, object>(), "void"); 25 AssertType(test, "<A, B extends A>() => void"); 28 test<{t?: string}, bigint>(); 29 AssertType(test<{t?: string}, bigint>(), "void"); 30 AssertType(test, "<A, B extends A>() => void");
|
D | bigintMissingES2020.ts | 21 declare function test<A, B extends A>(): void; 23 test<{t?: string}, object>(); 24 AssertType(test<{t?: string}, object>(), "void"); 25 AssertType(test, "<A, B extends A>() => void"); 28 test<{t?: string}, bigint>(); 29 AssertType(test<{t?: string}, bigint>(), "void"); 30 AssertType(test, "<A, B extends A>() => void");
|
D | bigintMissingES2019.ts | 21 declare function test<A, B extends A>(): void; 23 test<{t?: string}, object>(); 24 AssertType(test<{t?: string}, object>(), "void"); 25 AssertType(test, "<A, B extends A>() => void"); 28 test<{t?: string}, bigint>(); 29 AssertType(test<{t?: string}, bigint>(), "void"); 30 AssertType(test, "<A, B extends A>() => void");
|
D | partiallyAnnotatedFunctionInferenceWithTypeParameter.ts | 22 test: string 29 declare function test<T extends C>(a: (t: T, t1: T) => void): T function 35 test((t1: D, t2) => { t2.test2 }) 36 AssertType(test((t1: D, t2) => { t2.test2 }), "D"); 37 AssertType(test, "<T extends C>((T, T) => void) => T"); 43 test((t1, t2: D) => { t2.test2 }) 44 AssertType(test((t1, t2: D) => { t2.test2 }), "D"); 45 AssertType(test, "<T extends C>((T, T) => void) => T"); 52 test(() => {}) 53 AssertType(test(() => {}), "C"); [all …]
|
/arkcompiler/ets_runtime/test/moduletest/regexp/ |
D | regexp.js | 23 var result = reg.test("a"); 27 var result1 = reg1.test('0٫0000000000001'); 31 print(reg2.test('άέήίΰϊϋόύώ')); 33 print(reg2.test('ΆΈΉΊΪΫΎΏ')); 35 print(reg2.test('αβγδεζηθικλμνξοπρςστυφχψω')); 37 print(reg2.test('ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ')); 40 print(reg3.test('')) 43 print(reg4.test('a')); 46 print(reg5.test('a')); 49 print(reg6.test('a')); [all …]
|
/arkcompiler/ets_frontend/es2panda/test/ |
D | test_tsc_ignore_list.txt | 1 es2panda/test/TypeScript/tests/cases/compiler/bom-utf16be.ts 2 es2panda/test/TypeScript/tests/cases/compiler/collisionArgumentsInType.ts 3 es2panda/test/TypeScript/tests/cases/compiler/collisionArgumentsInterfaceMembers.ts 4 es2panda/test/TypeScript/tests/cases/compiler/elidedEmbeddedStatementsReplacedWithSemicolon.ts 5 es2panda/test/TypeScript/tests/cases/compiler/isLiteral1.ts 6 es2panda/test/TypeScript/tests/cases/compiler/isLiteral2.ts 7 es2panda/test/TypeScript/tests/cases/compiler/letAsIdentifier2.ts 8 es2panda/test/TypeScript/tests/cases/compiler/letInVarDeclOfForIn_ES5.ts 9 es2panda/test/TypeScript/tests/cases/compiler/letInVarDeclOfForIn_ES6.ts 10 es2panda/test/TypeScript/tests/cases/compiler/letInVarDeclOfForOf_ES5.ts [all …]
|
/arkcompiler/runtime_core/compiler/tests/amd64/ |
D | encoder64_test.cpp | 434 bool TestNeg(Encoder64Test *test) in TestNeg() argument 437 test->PreWork(); in TestNeg() 439 auto param = test->GetParameter(TypeInfo(T(0))); in TestNeg() 441 test->GetEncoder()->EncodeNeg(param, param); in TestNeg() 443 test->PostWork<T>(); in TestNeg() 446 if (!test->GetEncoder()->GetResult()) { in TestNeg() 451 test->Dump(false); in TestNeg() 461 if (!test->CallCode<T>(tmp, -tmp)) { in TestNeg() 469 if (!test->CallCode<T>(nan, nan)) { in TestNeg() 486 bool TestNot(Encoder64Test *test) in TestNot() argument [all …]
|
/arkcompiler/runtime_core/compiler/tests/aarch32/ |
D | encoder32_test.cpp | 431 bool TestNeg(Encoder32Test *test) in TestNeg() argument 434 test->PreWork<T>(); in TestNeg() 436 auto param = test->GetParameter(TypeInfo(T(0))); in TestNeg() 438 test->GetEncoder()->EncodeNeg(param, param); in TestNeg() 440 test->PostWork<T>(); in TestNeg() 443 if (!test->GetEncoder()->GetResult()) { in TestNeg() 448 test->Dump(false); in TestNeg() 458 if (!test->CallCode<T>(tmp, -tmp)) { in TestNeg() 466 if (!test->CallCode<T>(nan, nan)) { in TestNeg() 485 bool TestNot(Encoder32Test *test) in TestNot() argument [all …]
|
/arkcompiler/runtime_core/compiler/tests/aarch64/ |
D | encoder64_test.cpp | 436 bool TestNeg(Encoder64Test *test) in TestNeg() argument 439 test->PreWork(); in TestNeg() 441 auto param = test->GetParameter(TypeInfo(T(0))); in TestNeg() 443 test->GetEncoder()->EncodeNeg(param, param); in TestNeg() 445 test->PostWork(); in TestNeg() 448 if (!test->GetEncoder()->GetResult()) { in TestNeg() 453 test->Dump(false); in TestNeg() 463 if (!test->CallCode<T>(tmp, -tmp)) { in TestNeg() 471 if (!test->CallCode<T>(nan, nan)) { in TestNeg() 488 bool TestNot(Encoder64Test *test) in TestNot() argument [all …]
|
/arkcompiler/ets_runtime/test/moduletest/typearray/ |
D | expect_output.txt | 14 Float64Array test success !!! 15 Float32Array test success !!! 16 Int32Array test success !!! 17 Int16Array test success !!! 18 Int8Array test success !!! 19 Uint32Array test success !!! 20 Uint16Array test success !!! 21 Uint8Array test success !!! 22 Uint8ClampedArray test success !!! 23 BigInt64Array test success !!! [all …]
|
/arkcompiler/ets_runtime/test/moduletest/ |
D | BUILD.gn | 114 foreach(test, test_list) { 116 "${test}:${test}Action", 117 "${test}:${test}ContextAction", 131 foreach(test, release_test_list) { 133 "${test}:${test}Action", 134 "${test}:${test}ContextAction", 219 foreach(test, test_list) { 221 "${test}:${test}AsmAction", 222 "${test}:${test}AsmContextAction", 236 foreach(test, release_test_list) { [all …]
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/language/literals/ |
D | special-character-expected.txt | 1 test 3 test 5 test 6 test' 7 test" 8 test? 9 test
|
/arkcompiler/runtime_core/tests/checked/verify_aot_tests/ |
D | verify_aot_test.pa | 25 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch… 26 #! RUN options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc", entry: "Ver… 27 #! EVENT /AotManager,.*test.*,ADDED/ 28 #! EVENT /AotManager,.*test.*,VERIFIED/ 31 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch… 32 #! RUN options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc", entry: "Ver… 33 #! EVENT /AotManager,.*test.*,ADDED/ 34 #! EVENT /AotManager,.*test.*,VERIFIED/ 37 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch… 38 #! RUN options: "--panda-files=../../verify_aot_tests_file2.checked/test.abc", entry: "Ver… [all …]
|
/arkcompiler/ets_frontend/test262/ |
D | harness.patch | 57 @@ -209,3 +220,11 @@ function hasFeatures(test) { 59 return features.filter(feature => (test.attrs.features || []).includes(feature)).length > 0; 62 +function operMode(test) { 63 + test_scenario = test.scenario 124 - process.stdout.write(`PASS ${test.file}`); 125 + let mess = `PASS ${test.file} (${test.scenario})\n` 130 test.savedTestPath = saveCompiledTest(test, opts); 131 - process.stdout.write(`\nSaved compiled passed test as ${test.savedTestPath}\n`); 132 + // process.stdout.write(`\nSaved compiled passed test as ${test.savedTestPath}\n`); 140 - console.log(`FAIL ${test.file} (${test.scenario})`); [all …]
|
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/decorators/ |
D | test-ts-decorators-5-expected.txt | 1 test-ts-decorators-5 4 test-ts-decorators-5 7 test-ts-decorators-5 10 test-ts-decorators-5 13 test-ts-decorators-5 16 test-ts-decorators-5 19 test-ts-decorators-5
|
/arkcompiler/ets_runtime/test/moduletest/typedarrayat/ |
D | expect_output.txt | 14 Float64Array test success !!! 15 Float32Array test success !!! 16 Int32Array test success !!! 17 Int16Array test success !!! 18 Int8Array test success !!! 19 Uint32Array test success !!! 20 Uint16Array test success !!! 21 Uint8Array test success !!! 22 Uint8ClampedArray test success !!! 23 BigInt64Array test success !!! [all …]
|