Skip to content
Permalink
Browse files
Fix test spec.5 to close inappbrowser after loadstop event
  • Loading branch information
knaito-asial committed Mar 6, 2019
1 parent c95dbcb commit 5f1afbdf05f7e882af4540292b2cfbb6f3755198
Showing 1 changed file with 4 additions and 2 deletions.
@@ -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) {

0 comments on commit 5f1afbd

Please sign in to comment.