mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:00:16 +00:00
Added test for code blocks containing HTML entities in HTMLTest::toBBCode
This commit is contained in:
parent
f9165fbaf0
commit
5feb80397f
1 changed files with 10 additions and 0 deletions
|
@ -84,6 +84,16 @@ class HTMLTest extends MockedTest
|
||||||
'expectedBBCode' => "<big rant here> I don't understand tests",
|
'expectedBBCode' => "<big rant here> I don't understand tests",
|
||||||
'html' => "<big rant here> I don't understand tests",
|
'html' => "<big rant here> I don't understand tests",
|
||||||
],
|
],
|
||||||
|
'bug-10877-code-entities' => [
|
||||||
|
'expectedBBCode' => "Now playing
|
||||||
|
[code]
|
||||||
|
echo \"main(i){for(i=0;;i++)putchar(((i*(i>>8|i>>9)&46&i>>8))^(i&i>>13|i>>6));}\" | gcc -o a.out -x c - 2> /dev/null
|
||||||
|
./a.out | aplay -q 2> /dev/null
|
||||||
|
[/code]
|
||||||
|
its surprisingly good",
|
||||||
|
'html' => "<p>Now playing</p><pre><code>echo "main(i){for(i=0;;i++)putchar(((i*(i>>8|i>>9)&46&i>>8))^(i&i>>13|i>>6));}" | gcc -o a.out -x c - 2> /dev/null
|
||||||
|
./a.out | aplay -q 2> /dev/null</code></pre><p>its surprisingly good</p>",
|
||||||
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue