Skip to content

Commit

Permalink
Fix test spec.5 to close inappbrowser after loadstop event
Browse files Browse the repository at this point in the history
  • Loading branch information
knaito-asial committed Mar 6, 2019
1 parent c95dbcb commit 5f1afbd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ exports.defineAutoTests = function () {
verifyEvent(evt, 'exit');
done();
});
iabInstance.close();
iabInstance = null;
iabInstance.addEventListener('loadstop', function (evt) {
iabInstance.close();
iabInstance = null;
});
});

it('inappbrowser.spec.6 should support loaderror event', function (done) {
Expand Down

0 comments on commit 5f1afbd

Please sign in to comment.