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:
commit
af44235a61
@ -136,9 +136,11 @@ exports.defineAutoTests = function () {
|
||||
verifyEvent(evt, 'exit');
|
||||
done();
|
||||
});
|
||||
iabInstance.addEventListener('loadstop', function (evt) {
|
||||
iabInstance.close();
|
||||
iabInstance = null;
|
||||
});
|
||||
});
|
||||
|
||||
it('inappbrowser.spec.6 should support loaderror event', function (done) {
|
||||
if (isBrowser) {
|
||||
|
Loading…
Reference in New Issue
Block a user