[ticket/16580] Update rendering tests to match actual Prosilver

PHPBB3-16580
This commit is contained in:
JoshyPHP 2020-08-18 08:23:23 +02:00
parent 1d54d60f04
commit 1ac142347e
4 changed files with 10 additions and 10 deletions

View file

@ -402,7 +402,7 @@ class phpbb_test_case_helpers
$tables['phpbb_styles'][] = array( $tables['phpbb_styles'][] = array(
'style_id' => 1, 'style_id' => 1,
'style_path' => 'prosilver', 'style_path' => 'prosilver',
'bbcode_bitfield' => 'kNg=' 'bbcode_bitfield' => '//g='
); );
} }

View file

@ -50,7 +50,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
return array( return array(
array( array(
'[b]bold[/b]', '[b]bold[/b]',
'<span style="font-weight:bold">bold</span>' '<strong class="text-strong">bold</strong>'
), ),
array( array(
'[u]underlined[/u]', '[u]underlined[/u]',
@ -58,7 +58,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
), ),
array( array(
'[i]italic[/i]', '[i]italic[/i]',
'<span style="font-style:italic">italic</span>' '<em class="text-italics">italic</em>'
), ),
array( array(
'[color=#FF0000]colored[/color]', '[color=#FF0000]colored[/color]',
@ -70,7 +70,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
), ),
array( array(
'[size=75]smaller[/size]', '[size=75]smaller[/size]',
'<span style="font-size: 75%; line-height: normal">smaller</span>' '<span style="font-size:75%;line-height:116%">smaller</span>'
), ),
array( array(
'[quote]quoted[/quote]', '[quote]quoted[/quote]',
@ -184,17 +184,17 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
array( array(
// Allow textual bbcodes in textual bbcodes // Allow textual bbcodes in textual bbcodes
'[b]bold [i]bold + italic[/i][/b]', '[b]bold [i]bold + italic[/i][/b]',
'<span style="font-weight:bold">bold <span style="font-style:italic">bold + italic</span></span>' '<strong class="text-strong">bold <em class="text-italics">bold + italic</em></strong>'
), ),
array( array(
// Allow textual bbcodes in url with description // Allow textual bbcodes in url with description
'[url=https://area51.phpbb.com/]Area51 [i]italic[/i][/url]', '[url=https://area51.phpbb.com/]Area51 [i]italic[/i][/url]',
'<a href="https://area51.phpbb.com/" class="postlink">Area51 <span style="font-style:italic">italic</span></a>' '<a href="https://area51.phpbb.com/" class="postlink">Area51 <em class="text-italics">italic</em></a>'
), ),
array( array(
// Allow url with description in textual bbcodes // Allow url with description in textual bbcodes
'[i]italic [url=https://area51.phpbb.com/]Area51[/url][/i]', '[i]italic [url=https://area51.phpbb.com/]Area51[/url][/i]',
'<span style="font-style:italic">italic <a href="https://area51.phpbb.com/" class="postlink">Area51</a></span>' '<em class="text-italics">italic <a href="https://area51.phpbb.com/" class="postlink">Area51</a></em>'
), ),
array( array(
// Do not parse textual bbcodes in code // Do not parse textual bbcodes in code
@ -209,7 +209,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
array( array(
// Textual bbcode nesting into textual bbcode // Textual bbcode nesting into textual bbcode
'[b]bold [i]bold + italic[/b] italic[/i]', '[b]bold [i]bold + italic[/b] italic[/i]',
'<span style="font-weight:bold">bold <span style="font-style:italic">bold + italic</span></span><span style="font-style:italic"> italic</span>' '<strong class="text-strong">bold <em class="text-italics">bold + italic</em></strong><em class="text-italics"> italic</em>'
), ),
array( array(
"[code]\tline1\n line2[/code]", "[code]\tline1\n line2[/code]",

View file

@ -446,7 +446,7 @@
<value>&amp;copy; phpBB Group</value> <value>&amp;copy; phpBB Group</value>
<value>1</value> <value>1</value>
<value>prosilver</value> <value>prosilver</value>
<value>kNg=</value> <value>//g=</value>
<value>0</value> <value>0</value>
<value></value> <value></value>
</row> </row>

View file

@ -95,7 +95,7 @@
<value>&amp;copy; phpBB Group</value> <value>&amp;copy; phpBB Group</value>
<value>1</value> <value>1</value>
<value>prosilver</value> <value>prosilver</value>
<value>kNg=</value> <value>//g=</value>
<value>0</value> <value>0</value>
<value></value> <value></value>
</row> </row>