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

wikimedia / parsoid / 2673 / 1
85%
master: 85%

Build:
DEFAULT BRANCH: master
Ran 04 Jun 2019 05:40PM UTC
Files 152
Run time 9s
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

04 Jun 2019 05:27PM UTC coverage: 84.59%. Remained the same
2673.1

push

travis-ci

jenkins-bot
Deal with JS/PHP differences wrt encoding/decoding of numerical keys

* JS always uses strings for keys, even for numerical keys.

* PHP always uses integers for numerical keys, even if started
  out as a string.

* See REPL output below.

[subbu@earth:~/work/wmf/parsoid/src/Html2Wt] node
> Object.keys(JSON.parse(JSON.stringify({1: 5, "2": 5})))
[ '1', '2' ]
> [subbu@earth:~/work/wmf/parsoid/src/Html2Wt] psysh
>>> array_keys(json_decode(json_encode([1 => 5, "2" => 5]), true));
=> [
     1,
     2,
   ]

* So, unlike JS code, remove the (string) cast from the comparison of
  keys in the PHP code since it will fail strict checks.

* Some other minor cleanup. We rely on data-parsoid info that Parsoid
  generates in a number of places in the codebase and don't always
  try to be conservative about bad data-parsoid input. If we want to be
  robust in the presence of corrupt data-parsoid objects, we need to do
  a code audit and/or throw a bunch of randomly generated input at
  Parsoid and fix code.

Change-Id: I876da8ce1

9528 of 12002 branches covered (79.39%)

14904 of 17619 relevant lines covered (84.59%)

29647.37 hits per line

Source Files on job 2673.1
  • Tree
  • List 0
  • Changed 15
  • Source Changed 0
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 2488
  • Travis Job 2673.1
  • d399e515 on github
  • Prev Job for on master (#2672.2)
  • Next Job for on master (#2674.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