Bold text';
$expect[0] = $inputs[0];
// legal inline and block
// as the parent element is considered FLOW
$inputs[1] = 'Blank
Block
';
$expect[1] = $inputs[1];
// illegal block in inline, element -> text
$inputs[2] = 'Illegal div.
';
$expect[2] = '<div>Illegal div.</div>';
// test of empty set that's required, resulting in removal of node
$inputs[3] = '';
$expect[3] = '';
// test illegal text which gets removed
$inputs[4] = '';
$expect[4] = '';
foreach ($inputs as $i => $input) {
$tokens = $this->lex->tokenizeHTML($input);
$result_tokens = $strategy->execute($tokens);
$result = $this->gen->generateFromTokens($result_tokens);
$this->assertEqual($expect[$i], $result, "Test $i: %s");
paintIf($result, $result != $expect[$i]);
}
}
}
?>