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

wikimedia / parsoid / 2154 / 2
85%
master: 85%

Build:
DEFAULT BRANCH: master
Ran 14 Dec 2018 05:58PM UTC
Files 113
Run time 12s
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

13 Dec 2018 10:35PM UTC coverage: 84.72%. Remained the same
2154.2

push

travis-ci

subbuss
TemplateHandler:onTemplateArg: Use manager.frame instead of function arg

Frames are associated with pipelines and so new frames are created
when a subpipeline is created for processing content recursively
(ex: templates, extensions, attributes, link dom fragments, other
dom fragments, etc.). Frames are like call-stack entries in a
conventional programming language and contain the arguments of the
extension/template if any. When a new pipeline is constructed (see
PipelineUtils.processContentInPipeline), pipeline.setFrame is called
which constructs a new frame and associates it with the AsyncTTM.

During pipeline construction, all (async) token transformers have a
reference to the AsyncTTM they are associated with. While this makes
the transformers non-functional by associating state and requres them
to be instantiated for every pipeline instance, that has been the case
from the very beginning (as part of parser.js:makePipeline).

So, we can as well leverage that and stop passing around unnecessary
parameters like frame when it is available in this.manager.frame

In followup patches, we'll get rid of the frame arg to the async
token transformers and then eventually unify the token transformer
signatures for the sync and sync transformers.

Change-Id: I49bedd002

9326 of 11730 branches covered (79.51%)

15020 of 17729 relevant lines covered (84.72%)

26641.34 hits per line

Source Files on job 2154.2
  • Tree
  • List 0
  • Changed 8
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 2032
  • Travis Job 2154.2
  • a49a9474 on github
  • Prev Job for on master (#2153.3)
  • Next Job for on master (#2155.1)
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