? Failure

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
26 Mar 2015

how to test

Use this code:

$text = "<p>Überall dieselbe alte Leier. Das Layout ist fertig, der Text lässt auf sich warten. Damit das Layout nun nicht nackt im Raume steht und sich klein und</p>";

echo JHtml::_('string.truncateComplex', $text, 140);

E.g. into the template index.php arround line 80

current result

<p>Überall dieselbe alte Leier. Das Layout ist fertig, der Text lässt auf sich warten. Damit das Layout nun nicht nackt im Raume steht und</p>...

bevor_the_patch

expected result

<p>Überall dieselbe alte Leier. Das Layout ist fertig, der Text lässt auf sich warten. Damit das Layout nun nicht nackt im Raume steht und...</p>`

after_the_patch

Please notice the ... bevor and after the last tag. Expected is the the ...in the last tag.

Joomla Bugs reference

http://www.joomla-bugs.de/forum/index.php/topic,662.0.html

avatar zero-24 zero-24 - open - 26 Mar 2015
avatar joomla-cms-bot joomla-cms-bot - change - 26 Mar 2015
Labels Added: ?
avatar bertmert
bertmert - comment - 26 Mar 2015

Test failed.

Tested with

$text = '<h5>Headline A</h5>
<p><a href="http://example.org" target="_blank">example1</a></p>
<p>Test 2015 01: <a href="http://example.org" target="_blank">Link2 Link 2 Link2 Link 02</a></p>
<p>From 29.13.15 to 49.13.2015: <a href="http://example.org" target="_blank">Link3 Link 3 Testlink</a></p>
<h5>Headline B</h5>
<p>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text TextText Text Text Text Text Text Text Text Text TextText Text Text Text Text Text</p>
<h5>Headline C</h5>
<p>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text TextText Text Text Text</p>';
echo JHtml::_('string.truncateComplex', $text, 140);
exit;

RESULT:
complex01

Second test:

$text = '
<p>Dear Guest, this is a test. Please ignore!</p>
<h5>Headline A</h5>
<p><a href="http://example.org" target="_blank">example1</a></p>
<p>Test 2015 01: <a href="http://example.org" target="_blank">Link2 Link 2 Link2 Link 02</a></p>
<p>From 29.13.15 to 49.13.2015: <a href="http://example.org" target="_blank">Link3 Link 3 Testlink</a></p>
<h5>Headline B</h5>
<p>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text TextText Text Text Text Text Text Text Text Text TextText Text Text Text Text Text</p>
<h5>Headline C</h5>
<p>Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text TextText Text Text Text</p>';

echo JHtml::_('string.truncateComplex', $text, 140);
exit;

RESULT:
complex02

avatar zero-24 zero-24 - change - 27 Mar 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-03-27 08:32:55
Closed_By zero-24
avatar zero-24 zero-24 - close - 27 Mar 2015
avatar zero-24 zero-24 - close - 27 Mar 2015
avatar zero-24
zero-24 - comment - 27 Mar 2015

hmm also travis fails here. It is a bit to complex for me. I hope someone else can help here.

https://travis-ci.org/joomla/joomla-cms/jobs/56018043


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6594.

avatar zero-24 zero-24 - change - 27 Mar 2015
Category Libraries
avatar zero-24 zero-24 - head_ref_deleted - 31 May 2015

Add a Comment

Login with GitHub to post a comment