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

mbland / custom-links / 391
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: transfer-ownership
DEFAULT BRANCH: master
Ran 30 Jul 2017 03:15AM UTC
Jobs 2
Files 18
Run time 14s
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
391

push

travis-ci

mbland
public: Handle net::ERR_CONNECTION_REFUSED in XHR

As it turns out, the `XMLHttpRequest.onerror` handler won't handle
`net::ERR_CONNECTION_REFUSED` or other network errors. For that, one
needs to check for `xhr.status === 0` after `xhr.readyState === 4`.

The problem manifest when manually testing to simulate a link deletion
request failure by killing the server, and there was no accompanying
error message as expected from the `onerror` handler. The hint for the
solution came from:

https://stackoverflow.com/questions/28556398/how-to-catch-neterr-connection-refused

241 of 265 branches covered (90.94%)

Branch coverage included in aggregate %.

1899 of 1921 relevant lines covered (98.85%)

12.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 391.1 30 Jul 2017 03:15AM UTC 0
97.9
Travis Job 391.1
2 391.2 30 Jul 2017 03:15AM UTC 0
97.9
Travis Job 391.2
Source Files on build 391
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #391
  • 35d50548 on github
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