aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-08-27 22:55:37 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-08-27 22:55:37 +0200
commit7d41a9894aceac839835b981e7499c37c04c5f58 (patch)
tree79eb71ae11d2c5fcf9010a5de56a5325ba684bf9 /tests
parentde686a2e83f150b6dffb53f041a9b690ad32079b (diff)
parente19d446881ba98d8a1082732585da3f6d4bd262f (diff)
downloadforums-7d41a9894aceac839835b981e7499c37c04c5f58.tar
forums-7d41a9894aceac839835b981e7499c37c04c5f58.tar.gz
forums-7d41a9894aceac839835b981e7499c37c04c5f58.tar.bz2
forums-7d41a9894aceac839835b981e7499c37c04c5f58.tar.xz
forums-7d41a9894aceac839835b981e7499c37c04c5f58.zip
Merge pull request #3863 from VSEphpbb/ticket/14128
[ticket/14128] Fix img bbcode regression, lost postimage class * VSEphpbb/ticket/14128: [ticket/14128] Fix img bbcode regression, lost postimage class
Diffstat (limited to 'tests')
-rw-r--r--tests/text_formatter/s9e/default_formatting_test.php2
-rw-r--r--tests/text_formatter/s9e/fixtures/styles/bar/template/bbcode.html2
-rw-r--r--tests/text_formatter/s9e/fixtures/styles/barplus/template/bbcode.html2
-rw-r--r--tests/text_formatter/s9e/fixtures/styles/foo/template/bbcode.html2
-rw-r--r--tests/text_formatter/s9e/renderer_test.php4
-rw-r--r--tests/text_processing/generate_text_for_display_test.php2
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-12195.html2
7 files changed, 8 insertions, 8 deletions
diff --git a/tests/text_formatter/s9e/default_formatting_test.php b/tests/text_formatter/s9e/default_formatting_test.php
index 390bc65264..3047653d51 100644
--- a/tests/text_formatter/s9e/default_formatting_test.php
+++ b/tests/text_formatter/s9e/default_formatting_test.php
@@ -132,7 +132,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
),
array(
'[img]https://area51.phpbb.com/images/area51.png[/img]',
- '<img src="https://area51.phpbb.com/images/area51.png" alt="Image">'
+ '<img src="https://area51.phpbb.com/images/area51.png" class="postimage" alt="Image">'
),
array(
'[url]https://area51.phpbb.com/[/url]',
diff --git a/tests/text_formatter/s9e/fixtures/styles/bar/template/bbcode.html b/tests/text_formatter/s9e/fixtures/styles/bar/template/bbcode.html
index a17446581a..76a35542be 100644
--- a/tests/text_formatter/s9e/fixtures/styles/bar/template/bbcode.html
+++ b/tests/text_formatter/s9e/fixtures/styles/bar/template/bbcode.html
@@ -31,7 +31,7 @@
<!-- BEGIN size --><span style="font-size: {SIZE}%; line-height: 116%;">{TEXT}</span><!-- END size -->
-<!-- BEGIN img --><img src="{URL}" alt="{L_IMAGE}" /><!-- END img -->
+<!-- BEGIN img --><img src="{URL}" class="postimage" alt="{L_IMAGE}" /><!-- END img -->
<!-- BEGIN url --><a href="{URL}" class="postlink">{DESCRIPTION}</a><!-- END url -->
diff --git a/tests/text_formatter/s9e/fixtures/styles/barplus/template/bbcode.html b/tests/text_formatter/s9e/fixtures/styles/barplus/template/bbcode.html
index cd2f0acae3..fad8d828fd 100644
--- a/tests/text_formatter/s9e/fixtures/styles/barplus/template/bbcode.html
+++ b/tests/text_formatter/s9e/fixtures/styles/barplus/template/bbcode.html
@@ -31,7 +31,7 @@
<!-- BEGIN size --><span style="font-size: {SIZE}%; line-height: 116%;">{TEXT}</span><!-- END size -->
-<!-- BEGIN img --><img src="{URL}" alt="{L_IMAGE}" /><!-- END img -->
+<!-- BEGIN img --><img src="{URL}" class="postimage" alt="{L_IMAGE}" /><!-- END img -->
<!-- BEGIN url --><a href="{URL}" class="postlink">{DESCRIPTION}</a><!-- END url -->
diff --git a/tests/text_formatter/s9e/fixtures/styles/foo/template/bbcode.html b/tests/text_formatter/s9e/fixtures/styles/foo/template/bbcode.html
index 909c09df5a..3e38d13a32 100644
--- a/tests/text_formatter/s9e/fixtures/styles/foo/template/bbcode.html
+++ b/tests/text_formatter/s9e/fixtures/styles/foo/template/bbcode.html
@@ -31,7 +31,7 @@
<!-- BEGIN size --><span style="font-size: {SIZE}%; line-height: 116%;">{TEXT}</span><!-- END size -->
-<!-- BEGIN img --><img src="{URL}" alt="{L_IMAGE}" /><!-- END img -->
+<!-- BEGIN img --><img src="{URL}" class="postimage" alt="{L_IMAGE}" /><!-- END img -->
<!-- BEGIN url --><a href="{URL}" class="postlink">{DESCRIPTION}</a><!-- END url -->
diff --git a/tests/text_formatter/s9e/renderer_test.php b/tests/text_formatter/s9e/renderer_test.php
index 3c0bbb96c7..ad5bfa78fc 100644
--- a/tests/text_formatter/s9e/renderer_test.php
+++ b/tests/text_formatter/s9e/renderer_test.php
@@ -112,7 +112,7 @@ class phpbb_textformatter_s9e_renderer_test extends phpbb_test_case
),
array(
'<r><IMG src="http://example.org/foo.png"><s>[img]</s>http://example.org/foo.png<e>[/img]</e></IMG></r>',
- '<img src="http://example.org/foo.png" alt="Image">',
+ '<img src="http://example.org/foo.png" class="postimage" alt="Image">',
array('set_viewimg' => true)
),
array(
@@ -231,7 +231,7 @@ class phpbb_textformatter_s9e_renderer_test extends phpbb_test_case
),
array(
'<r><IMG src="http://localhost/mrgreen.gif"><s>[img]</s><URL url="http://localhost/mrgreen.gif">http://localhost/mrgreen.gif</URL><e>[/img]</e></IMG></r>',
- '<img src="http://localhost/mrgreen.gif" alt="Image">'
+ '<img src="http://localhost/mrgreen.gif" class="postimage" alt="Image">'
),
array(
'<r><IMG src="http://localhost/mrgreen.gif"><s>[img]</s><URL url="http://localhost/mrgreen.gif">http://localhost/mrgreen.gif</URL><e>[/img]</e></IMG></r>',
diff --git a/tests/text_processing/generate_text_for_display_test.php b/tests/text_processing/generate_text_for_display_test.php
index f2b0d6c78b..dba3713447 100644
--- a/tests/text_processing/generate_text_for_display_test.php
+++ b/tests/text_processing/generate_text_for_display_test.php
@@ -173,7 +173,7 @@ class phpbb_text_processing_generate_text_for_display_test extends phpbb_test_ca
),
array(
'<r><IMG src="http://localhost/mrgreen.gif"><s>[img]</s><URL url="http://localhost/mrgreen.gif">http://localhost/mrgreen.gif</URL><e>[/img]</e></IMG></r>',
- '<img src="http://localhost/mrgreen.gif" alt="Image">'
+ '<img src="http://localhost/mrgreen.gif" class="postimage" alt="Image">'
),
array(
'<r><IMG src="http://localhost/mrgreen.gif"><s>[img]</s><URL url="http://localhost/mrgreen.gif">http://localhost/mrgreen.gif</URL><e>[/img]</e></IMG></r>',
diff --git a/tests/text_processing/tickets_data/PHPBB3-12195.html b/tests/text_processing/tickets_data/PHPBB3-12195.html
index d8e0f8d523..c286c0fee9 100644
--- a/tests/text_processing/tickets_data/PHPBB3-12195.html
+++ b/tests/text_processing/tickets_data/PHPBB3-12195.html
@@ -1 +1 @@
-<a href="//example.org/" class="postlink"><img src="//example.org/img.png" alt="Image"></a> \ No newline at end of file
+<a href="//example.org/" class="postlink"><img src="//example.org/img.png" class="postimage" alt="Image"></a> \ No newline at end of file