Skip to content

Commit

Permalink
Fix incorrect PEARSax3 test assertion.
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Z. Yang <[email protected]>
  • Loading branch information
ezyang committed Nov 12, 2010
1 parent feeffe6 commit c9e7ffc
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions tests/HTMLPurifier/LexerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,15 @@ function test_tokenizeHTML_conditionalCommentUngreedy() {
}

function test_tokenizeHTML_imgTag() {
$start = array(
new HTMLPurifier_Token_Start('img',
array(
'src' => 'img_11775.jpg',
'alt' => '[Img #11775]',
'id' => 'EMBEDDED_IMG_11775',
)
)
);
$this->assertTokenization(
'<img src="img_11775.jpg" alt="[Img #11775]" id="EMBEDDED_IMG_11775" >',
array(
Expand All @@ -767,15 +776,8 @@ function test_tokenizeHTML_imgTag() {
)
),
array(
'DirectLex' => array(
new HTMLPurifier_Token_Start('img',
array(
'src' => 'img_11775.jpg',
'alt' => '[Img #11775]',
'id' => 'EMBEDDED_IMG_11775',
)
)
),
'DirectLex' => $start,
'PEARSax3' => $start,
)
);
}
Expand Down

0 comments on commit c9e7ffc

Please sign in to comment.