1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00

Remarkup unittest result messages

Summary: This diffs adds support for marking up unittest result messages.

Test Plan: Verified that links in unittest results were markup'd.

Reviewers: epriestley, jungejason

Reviewed By: epriestley

CC: aran, epriestley, zeeg

Differential Revision: https://secure.phabricator.com/D1298
This commit is contained in:
Andrew Gallagher 2012-01-03 00:34:59 -08:00
parent 48f72b57b2
commit cd0386bf8b
2 changed files with 4 additions and 3 deletions

View file

@ -49,9 +49,9 @@ final class DifferentialUnitFieldSpecification
if ($result != DifferentialUnitTestResult::RESULT_POSTPONED &&
$result != DifferentialUnitTestResult::RESULT_PASS) {
$userdata = phutil_utf8_shorten(idx($test, 'userdata'), 256);
$userdata = phutil_escape_html($userdata);
$userdata = str_replace("\n", '<br />', $userdata);
$engine = PhabricatorMarkupEngine::newDifferentialMarkupEngine();
$userdata = phutil_utf8_shorten(idx($test, 'userdata'), 512);
$userdata = $engine->markupText($userdata);
$unit_messages[] =
'<li>'.

View file

@ -10,6 +10,7 @@ phutil_require_module('phabricator', 'applications/differential/constants/unitst
phutil_require_module('phabricator', 'applications/differential/constants/unittestresult');
phutil_require_module('phabricator', 'applications/differential/field/specification/base');
phutil_require_module('phabricator', 'applications/differential/view/revisionupdatehistory');
phutil_require_module('phabricator', 'applications/markup/engine');
phutil_require_module('phutil', 'markup');
phutil_require_module('phutil', 'utils');