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

wikimedia / parsoid / 2673
85%

Build:
DEFAULT BRANCH: master
Ran 04 Jun 2019 05:35PM UTC
Jobs 3
Files 152
Run time 8min
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
2673

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%)

90406.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2673.1 04 Jun 2019 05:40PM UTC 0
84.59
Travis Job 2673.1
2 2673.2 04 Jun 2019 05:35PM UTC 0
84.59
Travis Job 2673.2
3 2673.3 04 Jun 2019 05:43PM UTC 0
84.62
Travis Job 2673.3
Source Files on build 2673
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2673
  • d399e515 on github
  • Prev Build on master (#2672)
  • Next Build on master (#2674)
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