Skip to content

Commit

Permalink
Fix HTMLCollection iteration to make unhide function work as expected (
Browse files Browse the repository at this point in the history
  • Loading branch information
pec9399 authored and boneskull committed Oct 18, 2019
1 parent 816dc27 commit 954cf0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/reporters/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ function hideSuitesWithout(classname) {
*/
function unhide() {
var els = document.getElementsByClassName('suite hidden');
for (var i = 0; i < els.length; ++i) {
els[i].className = els[i].className.replace('suite hidden', 'suite');
while (els.length > 0) {
els[0].className = els[0].className.replace('suite hidden', 'suite');
}
}

Expand Down

0 comments on commit 954cf0b

Please sign in to comment.