Merge pull request #440 from cordova-develop/fix-close-event-test

Fix test spec.5 to close inappbrowser after loadstop event
This commit is contained in:
Jesse MacFadyen 2019-03-06 00:00:48 -08:00 committed by GitHub
commit af44235a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {