Skip to content

Commit

Permalink
Merge pull request #440 from cordova-develop/fix-close-event-test
Browse files Browse the repository at this point in the history
Fix test spec.5 to close inappbrowser after loadstop event
  • Loading branch information
purplecabbage committed Mar 6, 2019
2 parents 2500b08 + 5f1afbd commit af44235
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 af44235

Please sign in to comment.