progtest (HtmlConsoleOutput): Correct indexing

Caused by previous commit.
master
Mike Gerwitz 2019-05-06 16:59:41 -04:00
parent aaf7b47e9e
commit c54a87e3e3
1 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ module.exports = Trait( 'HtmlConsoleOutput' )
const ind = this.__super( result );
const title = `[#${i}] ` + this._titleify( desc );
return `<a href="#" data-case-index="${i}" title="${title}">${ind}</a>`;
return `<a href="#" data-case-index="${i-1}" title="${title}">${ind}</a>`;
},
@ -135,8 +135,8 @@ module.exports = Trait( 'HtmlConsoleOutput' )
*/
'override protected createFailureHeading'( i, desc )
{
return `<a href="#" data-case-index="${i}">` +
`[#${i+1}]</a> ${desc}<br />`;
return `<a href="#" data-case-index="${i-1}">` +
`[#${i}]</a> ${desc}<br />`;
},