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

qunitjs / qunit / 9823737208 / 1
90%
main: 90%

Build:
DEFAULT BRANCH: main
Ran 07 Jul 2024 01:57AM UTC
Files 37
Run time 0s
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

07 Jul 2024 01:43AM UTC coverage: 88.959% (+0.1%) from 88.862%
9823737208.1

push

github

Krinkle
HTML Reporter: Fix encoding of label for urlConfig multi-value item

* Add test coverage for QUnit.config.urlConfig items with object
  as value. The urlConfig feature is mostly covered by
  `/test/reporter-urlparams.html` already, but what isn't covered yet
  is an item with an object value, where option labels can be
  customised.

* In adding tests I noticed that, when urlConfig is used to create
  a multi-value option (rather than string, as is more common), then
  `val.label` was not escaped, which meant that if labels were to
  contain mention of an HTML tag or otherwise contain "<" and ">",
  these could glitch and break part of the toolbar rendering.
  This is unlikely to be exploitable, e.g. not controlled by
  URL parameters, and generally populated with literals. Even dynamic
  menus that feed dropdown contents from external input are fine,
  since this affects the top-level label only.

Improve docs:
* Avoid the overloaded word "option". Instead using the word "item"
  consistently when referring to urlConfig items,
  to avoid confusion with the `<select>` options inside of the array.
* Remove odd inline snippet using `value = ;`. This was solely to
  satisfy ESLint run on Markdown, but is simply confusing. The array
  was redundant with the full example lower down, and I've now added
  a full example with an object value as well.

1829 of 2056 relevant lines covered (88.96%)

2136.68 hits per line

Source Files on job 9823737208.1
  • Tree
  • List 0
  • Changed 12
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 9823737208
  • de3a37d7 on github
  • Prev Job for on main (#9822891588.1)
  • Next Job for on main (#9824423034.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