mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-03 13:21:51 +00:00
Implement user-friendly links to test-cases on web tester.
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
parent
3dfcd016d3
commit
119ebcda71
@ -45,6 +45,16 @@ class HTMLPurifier_SimpleTest_Reporter extends HTMLReporter
|
|||||||
return $css;
|
return $css;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getTestList() {
|
||||||
|
// hacky; depends on a specific implementation of paintPass, etc.
|
||||||
|
$list = parent::getTestList();
|
||||||
|
$testcase = $list[1];
|
||||||
|
if (class_exists($testcase, false)) $file = str_replace('_', '/', $testcase) . '.php';
|
||||||
|
else $file = $testcase;
|
||||||
|
$list[1] = '<a href="index.php?file=' . $file . '">' . $testcase . '</a>';
|
||||||
|
return $list;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// vim: et sw=4 sts=4
|
// vim: et sw=4 sts=4
|
||||||
|
Loading…
Reference in New Issue
Block a user