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

wikimedia / parsoid / 3258
85%

Build:
DEFAULT BRANCH: master
Ran 12 Jan 2020 10:08AM UTC
Jobs 3
Files 154
Run time 5min
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
3258

push

travis-ci

jenkins-bot
<a href="https://github.com/wikimedia/parsoid/commit/512608d0c">Refactor Parsoid::html2html into Parsoid::pb2pb

Use the PageBundle class to indicate when we&#39;re dealing with separated
HTML, data-parsoid, and data-mw, with a new PageBundle::toHtml()
method to convert it back into &quot;unified&quot; (one HTML DOM, inline
attributes) form.

This is a useful marker in the code --- otherwise it&#39;s hard to tell if
a variable named $html is &quot;unified&quot; HTML or just one part of a page
bundle).  (Internally, there&#39;s another format used, where the data
attributes have been loaded into a separate bag structure attached
to the HTML, but that is not exposed in our external interfaces.)

Similarly, create explicit Parsoid::pb2pb and Parsoid::html2html
endpoints so the input types are clear.  While we&#39;re at it, add a pair
of missing ContentUtils::convertOffsets()/ConvertOffsets::run() calls
so (a) the Env &quot;request offset type&quot; parameter is honored on input, if
provided, (b) the &quot;current offset type&quot; parameter in the Env is
initialized correctly, and (c) the output offset type is correctly
recorded in the page bundle by ConvertOffsets::run().

We don&#39;t expect to use &quot;request offset type&quot; in production, so (b) and
(c) are actually the important things here, just to ensure that the
Env is initialized correctly and the page bundle records the fact
that these are (almost always) &quot;byte&quot; offsets.

Change-Id: I</a><a class="double-link" href="https://github.com/wikimedia/parsoid/commit/4a5918d7c">4a5918d7c</a>

9662 of 12132 branches covered (79.64%)

15149 of 17854 relevant lines covered (84.85%)

100218.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3258.1 12 Jan 2020 10:12AM UTC 0
84.85
Travis Job 3258.1
2 3258.2 12 Jan 2020 10:08AM UTC 0
84.85
Travis Job 3258.2
3 3258.3 12 Jan 2020 10:14AM UTC 0
84.87
Travis Job 3258.3
Source Files on build 3258
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3258
  • 512608d0 on github
  • Prev Build on master (#3257)
  • Next Build on master (#3259)
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

© 2025 Coveralls, Inc