mediawiki-skins-MinervaNeue/tests/qunit/skins.minerva.scripts
jdlrobson f14d9514c6 Fix formatPageIssuesSeverity
The page-issues reducer function that retrieves the severityLevels
for issues was incorrectly comparing two values in the multiple-issues
scenario.

Instead of comparing the severity of the current issue with the previous
value in the accumulator, it was comparing the current issue with the
previous issue in the original array, thus ignoring the
previous `maxSeverity` value in the accumulator.

Tests added and function refactored with more explicit variable names.

Bug: T203725
Change-Id: Ia4c15cbf0c2457d68a7381e8ed04c1a6b3ae65d1
2018-09-07 11:25:16 +02:00
..
stubs.js Hygiene: IssuesOverlay moved from MobileFrontend to Minerva 2018-08-16 14:06:12 -07:00
test_AB.js Hygiene: move page issues A/B test logging to file 2018-08-14 20:49:06 +00:00
test_DownloadIcon.js Hygiene: replace calledOnce / Twice w/ callCount 2018-05-08 16:12:04 +00:00
test_pageIssues.js Fix formatPageIssuesSeverity 2018-09-07 11:25:16 +02:00
test_PageIssuesOverlay.js page-issues sectionNumbers consistency on modalClose event 2018-09-05 21:29:53 +02:00
test_pageIssuesParser.js Hygiene: IssuesOverlay moved from MobileFrontend to Minerva 2018-08-16 14:06:12 -07:00