Lines Matching refs:tests

262     static Test const tests[] = {  in testNormalizedMakeRelative()  local
283 for (std::size_t i = 0; i < sizeof tests / sizeof tests[0]; ++i) { in testNormalizedMakeRelative()
286 m_context, rtl::OUString::createFromAscii(tests[i].base), in testNormalizedMakeRelative()
287 rtl::OUString::createFromAscii(tests[i].absolute))); in testNormalizedMakeRelative()
288 bool ok = tests[i].relative == 0 in testNormalizedMakeRelative()
290 : ref.is() && ref->getUriReference().equalsAscii(tests[i].relative); in testNormalizedMakeRelative()
295 buf.append(tests[i].base); in testNormalizedMakeRelative()
297 buf.append(tests[i].absolute); in testNormalizedMakeRelative()
309 if (tests[i].relative == 0) { in testNormalizedMakeRelative()
313 buf.append(tests[i].relative); in testNormalizedMakeRelative()
329 static Test const tests[] = { in testFindFirstURLInText() local
413 for (std::size_t i = 0; i < sizeof tests / sizeof tests[0]; ++i) { in testFindFirstURLInText()
414 rtl::OUString input(rtl::OUString::createFromAscii(tests[i].input)); in testFindFirstURLInText()
419 bool ok = tests[i].result == 0 in testFindFirstURLInText()
422 : (result.equalsAscii(tests[i].result) && begin == tests[i].begin in testFindFirstURLInText()
423 && end == tests[i].end); in testFindFirstURLInText()
428 buf.append(tests[i].input); in testFindFirstURLInText()
430 buf.append(tests[i].result == 0 ? "none" : tests[i].result); in testFindFirstURLInText()
432 buf.append(static_cast< sal_Int32 >(tests[i].begin)); in testFindFirstURLInText()
434 buf.append(static_cast< sal_Int32 >(tests[i].end)); in testFindFirstURLInText()