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 juergba committed Oct 9, 2019
1 parent 3633a90 commit 2de7c18
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 2de7c18

Please sign in to comment.