/third_party/icu/icu4c/source/test/intltest/ |
D | units_test.cpp | 150 for (const auto &testCase : testCases) { in testExtractConvertibility() local 151 MeasureUnitImpl source = MeasureUnitImpl::forIdentifier(testCase.source, status); in testExtractConvertibility() 153 testCase.source)) { in testExtractConvertibility() 156 MeasureUnitImpl target = MeasureUnitImpl::forIdentifier(testCase.target, status); in testExtractConvertibility() 158 testCase.target)) { in testExtractConvertibility() 167 if (status.errIfFailureAndReset("extractConvertibility(<%s>, <%s>, ...)", testCase.source, in testExtractConvertibility() 168 testCase.target)) { in testExtractConvertibility() 172 assertEquals(UnicodeString("Conversion Capability: ") + testCase.source + " to " + in testExtractConvertibility() 173 testCase.target, in testExtractConvertibility() 174 testCase.expectedState, convertibility); in testExtractConvertibility() [all …]
|
D | uts46test.cpp | 719 const TestCase &testCase=testCases[i]; in TestSomeCases() local 720 UnicodeString input(ctou(testCase.s)); in TestSomeCases() 721 UnicodeString expected(ctou(testCase.u)); in TestSomeCases() 730 (int)i, testCase.o, testCase.s) in TestSomeCases() 735 uint32_t uniErrors=testCase.errors&~ in TestSomeCases() 738 char mode=testCase.o[0]; in TestSomeCases() 742 (int)i, testCase.s, (long)uNInfo.getErrors()); in TestSomeCases() 748 (int)i, testCase.s, buffer); in TestSomeCases() 751 if(aNInfo.getErrors()!=testCase.errors) { in TestSomeCases() 753 (int)i, testCase.s, (long)aNInfo.getErrors()); in TestSomeCases() [all …]
|
D | ssearch.cpp | 149 const UXMLElement *testCase; in searchTest() local 152 while((testCase = root->nextChildElement(tc)) != NULL) { in searchTest() 154 if (testCase->getTagName().compare("test-case") != 0) { in searchTest() 158 const UnicodeString *id = testCase->getAttribute("id"); in searchTest() 172 const UnicodeString *strength = testCase->getAttribute("strength"); in searchTest() 193 const UnicodeString *norm = testCase->getAttribute("norm"); in searchTest() 203 const UnicodeString *alt = testCase->getAttribute("alternate_handling"); in searchTest() 211 const UnicodeString *locale = testCase->getAttribute("locale"); in searchTest() 226 n = testCase->getChildElement("pattern"); in searchTest() 236 n = testCase->getChildElement("pre"); in searchTest() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/message2/ |
D | TestUtils.java | 18 static void runTestCase(TestCase testCase) { in runTestCase() argument 19 runTestCase(null, testCase); in runTestCase() 22 static void runTestCase(Mf2FunctionRegistry customFunctionsRegistry, TestCase testCase) { in runTestCase() argument 23 if (testCase.ignore) { in runTestCase() 30 .setPattern(testCase.message) in runTestCase() 31 .setLocale(testCase.locale); in runTestCase() 37 String result = mf.formatToString(testCase.arguments); in runTestCase() 38 if (!testCase.errors.isEmpty()) { in runTestCase() 39 fail(reportCase(testCase) + "\nExpected error, but it didn't happen.\n" in runTestCase() 42 assertEquals(reportCase(testCase), testCase.expected, result); in runTestCase() [all …]
|
/third_party/node/test/fixtures/wpt/encoding/ |
D | textdecoder-ignorebom.any.js | 9 cases.forEach(function(testCase) { argument 12 var decoder = new TextDecoder(testCase.encoding, {ignoreBOM: true}); 13 var bytes = new Uint8Array(testCase.bytes); 17 testCase.encoding + ': BOM should be present in decoded string if ignored'); 21 … testCase.encoding + ': BOM should be present in decoded string if ignored by a reused decoder'); 23 decoder = new TextDecoder(testCase.encoding, {ignoreBOM: false}); 27 testCase.encoding + ': BOM should be absent from decoded string if not ignored'); 31 …testCase.encoding + ': BOM should be absent from decoded string if not ignored by a reused decoder… 33 decoder = new TextDecoder(testCase.encoding); 37 testCase.encoding + ': BOM should be absent from decoded string by default'); [all …]
|
/third_party/node/test/parallel/ |
D | test-querystring.js | 212 qsTestCases.forEach((testCase) => { 213 check(qs.parse(testCase[0]), testCase[2], testCase[0]); 217 qsColonTestCases.forEach((testCase) => { 218 check(qs.parse(testCase[0], ';', ':'), testCase[2], testCase[0]); 222 qsWeirdObjects.forEach((testCase) => { 223 check(qs.parse(testCase[1]), testCase[2], testCase[1]); 226 qsNoMungeTestCases.forEach((testCase) => { 227 assert.deepStrictEqual(qs.stringify(testCase[1], '&', '='), testCase[0]); 264 qsTestCases.forEach((testCase) => { 265 assert.strictEqual(qs.stringify(testCase[2]), testCase[1]); [all …]
|
D | test-fs-watch.js | 44 for (const testCase of cases) { 45 if (testCase.shouldSkip) continue; 46 fs.mkdirSync(testCase.dirPath); 48 const content1 = Date.now() + testCase.fileName.toLowerCase().repeat(1e4); 49 fs.writeFileSync(testCase.filePath, content1); 52 const pathToWatch = testCase[testCase.field]; 73 assert.strictEqual(argFilename, testCase.fileName); 83 const content2 = Date.now() + testCase.fileName.toUpperCase().repeat(1e4); 85 fs.writeFileSync(testCase.filePath, ''); 86 fs.writeFileSync(testCase.filePath, content2);
|
D | test-whatwg-url-custom-setters.js | 25 for (const testCase of testCases) { 26 let name = `Setting <${testCase.href}>.${attributeToBeSet}` + 27 ` = "${testCase.new_value}"`; 28 if ('comment' in testCase) { 29 name += ` ${testCase.comment}`; 32 const url = new URL(testCase.href); 33 url[attributeToBeSet] = testCase.new_value; 34 for (const attribute in testCase.expected) { 35 assert_equals(url[attribute], testCase.expected[attribute]);
|
D | test-fs-promises-watch.js | 43 for (const testCase of kCases) { 44 if (testCase.shouldSkip) continue; 45 fs.mkdirSync(testCase.dirPath); 47 const content1 = Date.now() + testCase.fileName.toLowerCase().repeat(1e4); 48 fs.writeFileSync(testCase.filePath, content1); 52 const watcher = watch(testCase[testCase.field]); 56 assert.strictEqual(filename, testCase.fileName); 68 const content2 = Date.now() + testCase.fileName.toUpperCase().repeat(1e4); 70 fs.writeFileSync(testCase.filePath, ''); 71 fs.writeFileSync(testCase.filePath, content2);
|
D | test-http-response-status-message.js | 42 const matching = this.filter(function(testCase) { argument 43 return testCase.path === path; 54 const testCase = testCases.findByPath(path); 56 connection.write(testCase.response); 64 const testCase = testCases[testCaseIndex]; 68 path: testCase.path 70 console.log(`client: expected status message: ${testCase.statusMessage}`); 72 assert.strictEqual(testCase.statusMessage, response.statusMessage);
|
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
D | gl4cCopyImageTests.hpp | 116 struct testCase struct in gl4cts::CopyImage::FunctionalTest 141 …bool copyAndVerify(const testCase& test_case, const glw::GLubyte** dst_pixels, const glw::GLubyte*… 143 …void getCleanRegions(const testCase& test_case, glw::GLuint dst_level, glw::GLuint out_corners[4][… 157 bool verify(const testCase& test_case, glw::GLuint dst_layer, const glw::GLubyte** dst_pixels, 167 std::vector<testCase> m_test_cases; 209 struct testCase struct in gl4cts::CopyImage::SmokeTest 221 …bool compareImages(const testCase& test_case, const glw::GLubyte* left_data, const glw::GLubyte* r… 223 bool copyAndVerify(const testCase& test_case, const glw::GLubyte* src_pixels); 225 void getPixels(glw::GLuint name, const testCase& test_case, glw::GLubyte* out_pixels) const; 227 void prepareDstPxls(const testCase& test_case, glw::GLubyte*& out_pixels) const; [all …]
|
D | gl3cTextureSwizzleTests.hpp | 206 struct testCase struct in gl3cts::TextureSwizzle::SmokeTest 220 …void captureAndVerify(const testCase& test_case, size_t output_format_index, glw::GLint output_cha… 228 void executeTestCase(const testCase& test_case); 232 …std::string getFragmentShader(const testCase& test_case, size_t output_format_index, bool is_teste… 234 std::string getVertexShader(const testCase& test_case, bool is_tested_stage); 242 void logTestCaseDetials(const testCase& test_case); 244 …void prepareAndTestProgram(const testCase& test_case, size_t output_format_index, glw::GLint outpu… 247 std::string prepareArguments(const testCase& test_case); 248 std::string prepareCoordinates(const testCase& test_case); 250 std::string prepareDerivatives(const testCase& test_case, size_t index); [all …]
|
/third_party/typescript/src/testRunner/ |
D | projectsRunner.ts | 57 …describe("Compiling project for " + payload.testCase.scenario + ": testcase " + testCaseFileName +… 80 …System, compilerOptions: ts.CompilerOptions, _testCaseJustName: string, testCase: ProjectRunnerTes… 82 this._testCase = testCase; 97 constructor(sys: fakes.System, testCase: ProjectRunnerTestCase & ts.CompilerOptions) { 99 this._testCase = testCase; 119 testCase: ProjectRunnerTestCase & ts.CompilerOptions; property 125 private testCase: ProjectRunnerTestCase & ts.CompilerOptions; property in project.ProjectTestCase 131 constructor(testCaseFileName: string, { testCase, moduleKind, vfs }: ProjectTestPayload) { 132 this.testCase = testCase; 134 this.compilerOptions = createCompilerOptions(testCase, moduleKind); [all …]
|
/third_party/icu/icu4c/source/test/perf/collperf2/ |
D | collperf2.cpp | 1446 Strcoll *testCase = new Strcoll(coll, getData16(status), true /* useLen */); in TestStrcoll() local 1448 delete testCase; in TestStrcoll() 1451 return testCase; in TestStrcoll() 1457 Strcoll *testCase = new Strcoll(coll, getData16(status), false /* useLen */); in TestStrcollNull() local 1459 delete testCase; in TestStrcollNull() 1462 return testCase; in TestStrcollNull() 1468 …Strcoll_2 *testCase = new Strcoll_2(coll, getData16(status), getModData16(status), true /* useLen … in TestStrcollSimilar() local 1470 delete testCase; in TestStrcollSimilar() 1473 return testCase; in TestStrcollSimilar() 1479 StrcollUTF8 *testCase = new StrcollUTF8(coll, getData8(status), true /* useLen */); in TestStrcollUTF8() local [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/ |
D | UnitsTest.java | 168 for (TestCase testCase : testCases) { 169 input = MeasureUnit.forIdentifier(testCase.input); 170 output = MeasureUnit.forIdentifier(testCase.output); 175 testCase.testATestCase(converter1); 178 … ComplexUnitsConverter converter2 = new ComplexUnitsConverter(testCase.input, testCase.output); 179 testCase.testATestCase(converter2); 231 for (TestCase testCase : testCases) { 232 MeasureUnitImpl input = MeasureUnitImpl.forIdentifier(testCase.inputUnit); 233 MeasureUnitImpl output = MeasureUnitImpl.forIdentifier(testCase.outputUnit); 236 …List<Measure> actualMeasures = converter.convert(BigDecimal.valueOf(testCase.inputValue), null).me… [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/normalizer/ |
D | UTS46Test.java | 500 TestCase testCase=new TestCase(); in TestSomeCases() local 503 testCase.set(testCases[i]); in TestSomeCases() 504 String input=testCase.s; in TestSomeCases() 505 String expected=testCase.u; in TestSomeCases() 514 i, testCase.o, testCase.s, e)); in TestSomeCases() 519 uniErrors.addAll(testCase.errors); in TestSomeCases() 521 char mode=testCase.o.charAt(0); in TestSomeCases() 525 i, testCase.s, uNInfo.getErrors())); in TestSomeCases() 530 i, testCase.s, prettify(uN.toString()))); in TestSomeCases() 533 if(!sameErrors(aNInfo, testCase.errors)) { in TestSomeCases() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/amber/ |
D | vktAmberTestCaseUtil.cpp | 155 AmberTestCase *testCase = new AmberTestCase(testCtx, m_testnameField, m_descField, testFilename); in parse() local 164 testCase->addRequirement(m_scratch); in parse() 171 return testCase; in parse() 179 AmberTestCase* testCase = 0; in createAmberTestsFromIndexFile() local 184 testCase = parser.parse(category, testCtx); in createAmberTestsFromIndexFile() 185 if (testCase) in createAmberTestsFromIndexFile() 187 group->addChild(testCase); in createAmberTestsFromIndexFile() 189 } while (testCase); in createAmberTestsFromIndexFile() 208 AmberTestCase *testCase = new AmberTestCase(testCtx, name, description, readFilename); in createAmberTestCase() local 211 testCase->addRequirement(req); in createAmberTestCase() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PersonNameFormatterTest.java | 71 for (String[] testCase : nameAndTestCases.testCases) { in executeTestCases() 72 Locale formatterLocale = Locale.forLanguageTag(testCase[0].replace('_', '-')); in executeTestCases() 73 … PersonNameFormatter.Length formatterLength = PersonNameFormatter.Length.valueOf(testCase[1]); in executeTestCases() 74 … PersonNameFormatter.Usage formatterUsage = PersonNameFormatter.Usage.valueOf(testCase[2]); in executeTestCases() 75 …sonNameFormatter.Formality formatterFormality = PersonNameFormatter.Formality.valueOf(testCase[3]); in executeTestCases() 76 Set<PersonNameFormatter.Options> formatterOptions = makeOptionsSet(testCase[4]); in executeTestCases() 77 String expectedResult = testCase[5]; in executeTestCases() 86 …ting result for " + nameAndTestCases.nameFields + "," + Arrays.toString(testCase), expectedResult,… in executeTestCases() 408 for (String[] testCase : testCases) { in TestLiteralTextElision2() 409 SimplePersonName name = buildPersonName(testCase[0]); in TestLiteralTextElision2() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/normalizer/ |
D | UTS46Test.java | 594 TestCase testCase=new TestCase(); in TestSomeCases() local 597 testCase.set(testCases[i]); in TestSomeCases() 598 String input=testCase.s; in TestSomeCases() 599 String expected=testCase.u; in TestSomeCases() 608 i, testCase.o, testCase.s, e)); in TestSomeCases() 613 uniErrors.addAll(testCase.errors); in TestSomeCases() 615 char mode=testCase.o.charAt(0); in TestSomeCases() 619 i, testCase.s, uNInfo.getErrors())); in TestSomeCases() 624 i, testCase.s, prettify(uN.toString()))); in TestSomeCases() 627 if(!sameErrors(aNInfo, testCase.errors)) { in TestSomeCases() [all …]
|
/third_party/glslang/gtests/ |
D | Config.FromFile.cpp | 52 TestCaseSpec testCase = GetParam(); in TEST_P() local 58 tryLoadFile(GlobalTestSettings.testRoot + "/" + testCase.input, "input", &shaderContents); in TEST_P() 59 …tryLoadFile(GlobalTestSettings.testRoot + "/" + testCase.config, "limits config", &configContents); in TEST_P() 73 glslang::TShader shader(GetShaderStage(GetSuffix(testCase.input))); in TEST_P() 74 compile(&shader, shaderContents, "", testCase.controls, &resources); in TEST_P() 76 {testCase.input, shader.getInfoLog(), shader.getInfoDebugLog()}); in TEST_P() 81 program.link(testCase.controls); in TEST_P() 86 outputResultToStream(&stream, result, testCase.controls); in TEST_P() 90 GlobalTestSettings.testRoot + "/baseResults/" + testCase.output; in TEST_P()
|
/third_party/vk-gl-cts/modules/gles31/ |
D | tes31TestCaseWrapper.hpp | 43 void init (tcu::TestCase* testCase, const std::string& path); 44 void deinit (tcu::TestCase* testCase); 45 tcu::TestNode::IterateResult iterate (tcu::TestCase* testCase); 65 void TestCaseWrapper<TEST_PACKAGE>::init (tcu::TestCase* testCase, const std::string& path) in init() argument 70 testCase->init(); in init() 74 void TestCaseWrapper<TEST_PACKAGE>::deinit (tcu::TestCase* testCase) in deinit() argument 76 testCase->deinit(); in deinit() 83 tcu::TestNode::IterateResult TestCaseWrapper<TEST_PACKAGE>::iterate (tcu::TestCase* testCase) in iterate() argument 86 const tcu::TestCase::IterateResult result = testCase->iterate(); in iterate()
|
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
D | glcConfigPackage.cpp | 41 void init(tcu::TestCase* testCase, const std::string& path); 42 void deinit(tcu::TestCase* testCase); 43 tcu::TestNode::IterateResult iterate(tcu::TestCase* testCase); 54 void TestCaseWrapper::init(tcu::TestCase* testCase, const std::string&) in init() argument 56 testCase->init(); in init() 59 void TestCaseWrapper::deinit(tcu::TestCase* testCase) in deinit() argument 61 testCase->deinit(); in deinit() 64 tcu::TestNode::IterateResult TestCaseWrapper::iterate(tcu::TestCase* testCase) in iterate() argument 66 const tcu::TestCase::IterateResult result = testCase->iterate(); in iterate()
|
D | glcNoDefaultContextPackage.cpp | 43 void init(tcu::TestCase* testCase, const std::string& path); 44 void deinit(tcu::TestCase* testCase); 45 tcu::TestNode::IterateResult iterate(tcu::TestCase* testCase); 56 void TestCaseWrapper::init(tcu::TestCase* testCase, const std::string&) in init() argument 58 testCase->init(); in init() 61 void TestCaseWrapper::deinit(tcu::TestCase* testCase) in deinit() argument 63 testCase->deinit(); in deinit() 66 tcu::TestNode::IterateResult TestCaseWrapper::iterate(tcu::TestCase* testCase) in iterate() argument 68 const tcu::TestCase::IterateResult result = testCase->iterate(); in iterate()
|
/third_party/vk-gl-cts/external/openglcts/modules/gles2/ |
D | es2cTestPackage.cpp | 47 void init(tcu::TestCase* testCase, const std::string& path); 48 void deinit(tcu::TestCase* testCase); 49 tcu::TestNode::IterateResult iterate(tcu::TestCase* testCase); 66 void TestCaseWrapper::init(tcu::TestCase* testCase, const std::string& path) in init() argument 73 testCase->init(); in init() 76 void TestCaseWrapper::deinit(tcu::TestCase* testCase) in deinit() argument 78 testCase->deinit(); in deinit() 83 tcu::TestNode::IterateResult TestCaseWrapper::iterate(tcu::TestCase* testCase) in iterate() argument 96 result = testCase->iterate(); in iterate()
|
/third_party/node/test/fixtures/wpt/encoding/streams/ |
D | decode-ignore-bom.any.js | 23 for (const testCase of cases) { 26 const inputChunks = [testCase.bytes.slice(0, splitPoint), 27 testCase.bytes.slice(splitPoint)]; 29 await pipeAndAssemble(inputChunks, testCase.encoding, true); 33 await pipeAndAssemble(inputChunks, testCase.encoding, false); 35 }, `ignoreBOM should work for encoding ${testCase.encoding}, split at ` +
|