? ? Success

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
12 Jul 2015

These functions call a JLayout which therefore uses Platform Specific line endings. Therefore we need to use PHP_EOL instead of \n in this scenario for unit tests to pass on windows

To test you can run unit tests on windows. Some unit tests will still fail (this fixes 9/15 total failures) - but the ones in JHtmlBootstrap and all JGithub tests will now pass. You can also observe that travis continue's to pass

avatar wilsonge wilsonge - open - 12 Jul 2015
avatar wilsonge wilsonge - change - 12 Jul 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Jul 2015
Labels Added: ?
avatar wilsonge wilsonge - change - 12 Jul 2015
Title
Fix JHtml::bootstrap unit tests on windows
Fix unit tests failing on windows because of EOL differences
avatar wilsonge wilsonge - change - 12 Jul 2015
The description was changed
Title
Fix JHtml::bootstrap unit tests on windows
Fix unit tests failing on windows because of EOL differences
avatar mbabker mbabker - reference | 9024844 - 12 Jul 15
avatar mbabker mbabker - merge - 12 Jul 2015
avatar mbabker mbabker - close - 12 Jul 2015
avatar mbabker mbabker - change - 12 Jul 2015
The description was changed
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-07-12 23:38:20
Closed_By mbabker
avatar mbabker mbabker - close - 12 Jul 2015
avatar zero-24 zero-24 - close - 12 Jul 2015
avatar wilsonge wilsonge - head_ref_deleted - 12 Jul 2015
avatar zero-24 zero-24 - change - 13 Jul 2015
Milestone Added:
avatar zero-24 zero-24 - change - 13 Jul 2015
Labels Added: ?
avatar N6REJ
N6REJ - comment - 13 Jul 2015

George, in one of my extensions when i'm using addStyleDeclaration i'm
using \n also such as..
addStyleDecaration("body{\n;color: #123;\n}\n"); do those need to be
PHP_EOL also?
Bear
On 7/12/2015 18:18, George Wilson wrote:

This function calls a JLayout which therefore uses Platform Specific
line endings. Therefore we need to use |PHP_EOL| instead of |\n| in
this scenario for unit tests to pass on windows

To test you can run unit tests on windows. Some will still fail - but
the ones in |JHtmlBootstrap| will now pass. You can also observe that
travis continue's to pass


    You can view, comment on, or merge this pull request online at:

#7424

    Commit Summary


Reply to this email directly or view it on GitHub
#7424.

No virus found in this message.
Checked by AVG - www.avg.com http://www.avg.com
Version: 2015.0.6081 / Virus Database: 4392/10217 - Release Date: 07/12/15

avatar wilsonge
wilsonge - comment - 13 Jul 2015

This is just for unit tests. If you're echoing out onto the page your fine

avatar N6REJ
N6REJ - comment - 13 Jul 2015

great, ty.
Bear
On 7/13/2015 08:44, George Wilson wrote:

This is just for unit tests. If you're echoing out onto the page your fine


Reply to this email directly or view it on GitHub
#7424 (comment).

No virus found in this message.
Checked by AVG - www.avg.com http://www.avg.com
Version: 2015.0.6081 / Virus Database: 4392/10221 - Release Date: 07/13/15

Add a Comment

Login with GitHub to post a comment