aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text_processing
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2015-05-07 15:46:06 +0200
committerAndreas Fischer <bantu@phpbb.com>2015-05-07 15:46:06 +0200
commit2ebf4aa15118e9a411f9cf8febb0f2f2729332ea (patch)
tree75e63e7ad309bc45a820ccc2d691196719ec133d /tests/text_processing
parentd025581f49c10b2f6015ebae8bd72ff610b800f3 (diff)
parent71660301d6467d2cb7a0fc08ee74e13912b6bc42 (diff)
downloadforums-2ebf4aa15118e9a411f9cf8febb0f2f2729332ea.tar
forums-2ebf4aa15118e9a411f9cf8febb0f2f2729332ea.tar.gz
forums-2ebf4aa15118e9a411f9cf8febb0f2f2729332ea.tar.bz2
forums-2ebf4aa15118e9a411f9cf8febb0f2f2729332ea.tar.xz
forums-2ebf4aa15118e9a411f9cf8febb0f2f2729332ea.zip
Merge pull request #3571 from s9e/ticket/13425
[ticket/13425] Smiley code at start of text being quoted doesn't show smiley image in quote * s9e/ticket/13425: [ticket/13425] Added regression test
Diffstat (limited to 'tests/text_processing')
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-13425.html1
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-13425.txt1
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-13425.xml23
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/text_processing/tickets_data/PHPBB3-13425.html b/tests/text_processing/tickets_data/PHPBB3-13425.html
new file mode 100644
index 0000000000..9a042dc558
--- /dev/null
+++ b/tests/text_processing/tickets_data/PHPBB3-13425.html
@@ -0,0 +1 @@
+<blockquote class="uncited"><div><img class="smilies" src="phpBB/images/smilies/icon_lol.gif" alt=":lol:" title="Laughing"> starts with a smiley</div></blockquote> \ No newline at end of file
diff --git a/tests/text_processing/tickets_data/PHPBB3-13425.txt b/tests/text_processing/tickets_data/PHPBB3-13425.txt
new file mode 100644
index 0000000000..8456410df5
--- /dev/null
+++ b/tests/text_processing/tickets_data/PHPBB3-13425.txt
@@ -0,0 +1 @@
+[quote]:lol: starts with a smiley[/quote] \ No newline at end of file
diff --git a/tests/text_processing/tickets_data/PHPBB3-13425.xml b/tests/text_processing/tickets_data/PHPBB3-13425.xml
new file mode 100644
index 0000000000..cbdcaa7fb7
--- /dev/null
+++ b/tests/text_processing/tickets_data/PHPBB3-13425.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<dataset>
+ <table name="phpbb_smilies">
+ <column>smiley_id</column>
+ <column>code</column>
+ <column>emotion</column>
+ <column>smiley_url</column>
+ <column>smiley_width</column>
+ <column>smiley_height</column>
+ <column>smiley_order</column>
+ <column>display_on_posting</column>
+ <row>
+ <value>22</value>
+ <value>:lol:</value>
+ <value>Laughing</value>
+ <value>icon_lol.gif</value>
+ <value>15</value>
+ <value>17</value>
+ <value>22</value>
+ <value>1</value>
+ </row>
+ </table>
+</dataset>