Skip to content

Commit

Permalink
Core: Fix clearing of storage on done
Browse files Browse the repository at this point in the history
  • Loading branch information
trentmwillis committed Nov 13, 2016
1 parent ca6788c commit 9206143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ function done() {

// Clear own storage items if all tests passed
if ( storage && config.stats.bad === 0 ) {
for ( i = 0; i < storage.length; i++ ) {
key = storage.key( i++ );
for ( i = storage.length - 1; i >= 0; i-- ) {
key = storage.key( i );
if ( key.indexOf( "qunit-test-" ) === 0 ) {
storage.removeItem( key );
}
Expand Down

0 comments on commit 9206143

Please sign in to comment.