mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 00:41:52 +00:00
Fix incorrect PEARSax3 test assertion.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
parent
feeffe6ed2
commit
c9e7ffc172
@ -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',
|
|
||||||
)
|
|
||||||
)
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user