]> git.mxchange.org Git - friendica.git/commitdiff
Added tests
authorMichael <heluecht@pirati.ca>
Thu, 5 Sep 2019 20:37:16 +0000 (20:37 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 5 Sep 2019 20:37:16 +0000 (20:37 +0000)
tests/src/Content/Text/BBCodeTest.php

index 899f32764dc9307546a48dae84f831d629290ce3..3d8beb3930607e662fa375935ed4ce027bfa59c9 100644 (file)
@@ -176,6 +176,28 @@ class BBCodeTest extends MockedTest
 [*]http://example.com/
 [/ul]',
                        ],
+                       'bug-2199-named-size' => [
+                               'expectedHtml' => '<span style="font-size: xx-large; line-height: initial;">Test text</span>',
+                               'text' => '[size=xx-large]Test text[/size]',
+                               'simpleHtml' => 0,
+                       ],
+                       'bug-2199-numeric-size' => [
+                               'expectedHtml' => '<span style="font-size: 24px; line-height: initial;">Test text</span>',
+                               'text' => '[size=24]Test text[/size]',
+                               'simpleHtml' => 0,
+                       ],
+                       'bug-2199-diaspora-no-named-size' => [
+                               'expectedHtml' => 'Test text',
+                               'text' => '[size=xx-large]Test text[/size]',
+                               // Triggers the diaspora compatible output
+                               'simpleHtml' => 3,
+                       ],
+                       'bug-2199-diaspora-no-numeric-size' => [
+                               'expectedHtml' => 'Test text',
+                               'text' => '[size=24]Test text[/size]',
+                               // Triggers the diaspora compatible output
+                               'simpleHtml' => 3,
+                       ],
                ];
        }