[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(
'style_id' => 1,
'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(
array(
'[b]bold[/b]',
'<span style="font-weight:bold">bold</span>'
'<strong class="text-strong">bold</strong>'
),
array(
'[u]underlined[/u]',
@ -58,7 +58,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
),
array(
'[i]italic[/i]',
'<span style="font-style:italic">italic</span>'
'<em class="text-italics">italic</em>'
),
array(
'[color=#FF0000]colored[/color]',
@ -70,7 +70,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
),
array(
'[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(
'[quote]quoted[/quote]',
@ -184,17 +184,17 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
array(
// Allow textual bbcodes in textual bbcodes
'[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(
// Allow textual bbcodes in url with description
'[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(
// Allow url with description in textual bbcodes
'[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(
// Do not parse textual bbcodes in code
@ -209,7 +209,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
array(
// Textual bbcode nesting into textual bbcode
'[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(
"[code]\tline1\n line2[/code]",

View file

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

View file

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