mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[ticket/11742] Updated default formatting tests to match the new default
PHPBB3-11742
This commit is contained in:
@@ -68,7 +68,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'[code]unparsed code[/code]',
|
'[code]unparsed code[/code]',
|
||||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><code>unparsed code</code></div>'
|
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>unparsed code</code></pre></div>'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'[list]no item[/list]',
|
'[list]no item[/list]',
|
||||||
@@ -181,12 +181,12 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
|
|||||||
array(
|
array(
|
||||||
// Do not parse textual bbcodes in code
|
// Do not parse textual bbcodes in code
|
||||||
'[code]unparsed code [b]bold [i]bold + italic[/i][/b][/code]',
|
'[code]unparsed code [b]bold [i]bold + italic[/i][/b][/code]',
|
||||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><code>unparsed code [b]bold [i]bold + italic[/i][/b]</code></div>'
|
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>unparsed code [b]bold [i]bold + italic[/i][/b]</code></pre></div>'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
// Do not parse quote bbcodes in code
|
// Do not parse quote bbcodes in code
|
||||||
'[code]unparsed code [quote="username"]quoted[/quote][/code]',
|
'[code]unparsed code [quote="username"]quoted[/quote][/code]',
|
||||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><code>unparsed code [quote="username"]quoted[/quote]</code></div>'
|
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>unparsed code [quote="username"]quoted[/quote]</code></pre></div>'
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
// Textual bbcode nesting into textual bbcode
|
// Textual bbcode nesting into textual bbcode
|
||||||
@@ -195,7 +195,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
|
|||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
"[code]\tline1\n line2[/code]",
|
"[code]\tline1\n line2[/code]",
|
||||||
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><code> line1<br>' . "\n" . ' line2</code></div>'
|
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>' . "\tline1\n line2</code></pre></div>"
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'... http://example.org ...',
|
'... http://example.org ...',
|
||||||
|
Reference in New Issue
Block a user