• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wikimedia / parsoid / 2661 / 3
85%
master: 85%

Build:
DEFAULT BRANCH: master
Ran 29 May 2019 04:25PM UTC
Files 152
Run time 35s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 May 2019 04:14PM UTC coverage: 82.806% (+0.03%) from 82.777%
2661.3

push

travis-ci

jenkins-bot
LinkHandlerUtils: Fix translation of non-boolean JS &&/||

The JS side had

 var sizeString = (size && size.ak) || (ww.fromDataMW && ww.value);

in JS this takes the value of size.ak or ww.value (or something falsey).
The naively translated PHP, on the other hand, always results in true
or false. We need more complicated logic to duplicate the JS behavior.

Further, we may also need to take into account here the fact that in JS
string-0 is truthy while in PHP it's falsey.

Also, apparently Phan was confused all this time about what $getLastOpt
could return, and the changed code structure made it start complaining.
A typehint fixes that.

Change-Id: I26fb19323

9197 of 12006 branches covered (76.6%)

14597 of 17628 relevant lines covered (82.81%)

7334.37 hits per line

Source Files on job 2661.3
  • Tree
  • List 0
  • Changed 23
  • Source Changed 0
  • Coverage Changed 23
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 2478
  • Travis Job 2661.3
  • 4e2b5498 on github
  • Prev Job for on master (#2660.2)
  • Next Job for on master (#2662.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc