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

wikimedia / parsoid / 2661
85%

Build:
DEFAULT BRANCH: master
Ran 29 May 2019 04:20PM UTC
Jobs 4
Files 152
Run time 6min
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

pending completion
2661

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

9198 of 12006 branches covered (76.61%)

14597 of 17628 relevant lines covered (82.81%)

28646.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2661.1 29 May 2019 04:22PM UTC 0
82.78
Travis Job 2661.1
2 2661.2 29 May 2019 04:20PM UTC 0
82.78
Travis Job 2661.2
3 2661.3 29 May 2019 04:25PM UTC 0
82.81
Travis Job 2661.3
4 2661.4 29 May 2019 04:27PM UTC 0
82.81
Travis Job 2661.4
Source Files on build 2661
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2661
  • 4e2b5498 on github
  • Prev Build on master (#2660)
  • Next Build on master (#2662)
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