1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-10-17 23:16:06 +02:00

Implemented good behavior structure for fixNesting. Goes into infinite loop if bad stuff is passed.

Remove dud test and note which tests need to be added. Also, we're only running one test at a time to ease debugging.

git-svn-id: http://htmlpurifier.org/svnroot/html_purifier/trunk@57 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2006-07-19 00:21:21 +00:00
parent 2a2d8cbd76
commit 3e6bcb7a0f
2 changed files with 45 additions and 15 deletions

View File

@@ -413,17 +413,14 @@ class Test_PureHTMLDefinition extends UnitTestCase
new MF_EndTag('b'),
);
// illegal <a> in <a>
$inputs[3] = array(
new MF_StartTag('a'),
new MF_EndTag('a')
);
$expect[3] = array(
new MF_StartTag('a'),
new MF_EndTag('a')
);
// need test of empty set that's required, resulting in removal of node
// need test of cascading removal (if possible)
// ! cover all child element conditions
// execute only one test at a time:
$inputs = array( $inputs[0] );
foreach ($inputs as $i => $input) {
$result = $this->def->fixNesting($input);