0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 16:31:53 +00:00

Fix incorrect PEARSax3 test assertion.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
Edward Z. Yang 2010-11-12 15:43:10 +00:00
parent feeffe6ed2
commit c9e7ffc172

View File

@ -755,6 +755,15 @@ div {}
} }
function test_tokenizeHTML_imgTag() { 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( $this->assertTokenization(
'<img src="img_11775.jpg" alt="[Img #11775]" id="EMBEDDED_IMG_11775" >', '<img src="img_11775.jpg" alt="[Img #11775]" id="EMBEDDED_IMG_11775" >',
array( array(
@ -767,15 +776,8 @@ div {}
) )
), ),
array( array(
'DirectLex' => array( 'DirectLex' => $start,
new HTMLPurifier_Token_Start('img', 'PEARSax3' => $start,
array(
'src' => 'img_11775.jpg',
'alt' => '[Img #11775]',
'id' => 'EMBEDDED_IMG_11775',
)
)
),
) )
); );
} }