mirror of
https://github.com/shuto-cn/cordova-plugin-inappbrowser.git
synced 2025-02-24 02:52:57 +08:00
Fix test spec.5 to close inappbrowser after loadstop event
This commit is contained in:
parent
c95dbcbaea
commit
5f1afbdf05
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user