Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tweak a few selectors so that the theme is compatible with QUnit 3.0 (currently in alpha).
Reference:
#qunit-tests li
to#qunit-tests > li
so that the grey background won't start applying to assertions. Previously, upstream set its white background via#qunit-tests li li.pass
which was stronger. QUnit 3.0.0-alpha.2 sets this on.qunit-assert-list .pass
instead.#qunit-tests > li
and#qunit-tests > li.{pass,fail}
elsewhere too for consistency with the above and with (new) documentation at https://qunitjs.com/browser/#theme-api..qunit-source
selector, as that seems to be enough on both QUnit 2 and QUnit 3..qunit-assert-list
selector, idem.#qunit-tests .qunit-assert-list .pass
instead of#qunit-tests li li.pass
. In the future,.qunit-assert-list .pass
should suffice but for now we need the ID in order for the theme to remain effective in QUnit 2 as well.#qunit-userAgent
override only in QUnit 2. In 3.0, the default might suite you better? (Text shadow was removed in HTML Reporter: QUnit 3.0 theme structure and layout qunitjs/qunit#1774).#qunit-modulefilter-search-container:after
override only in QUnit 2. In 3.0, the positioning logic doesn't work right (icon shifted down). This could be fixed by settingmin-height
instead ofheight
. But, given the icon was upstreamed in HTML Reporter: QUnit 3.0 theme structure and layout qunitjs/qunit#1774, the default would achieve the same effect.