diff options
author | Vincent Petry <pvince81@owncloud.com> | 2017-02-27 10:06:53 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-03-19 23:15:21 -0600 |
commit | 703f2e6a61bf51e6540a57039d21acb975bd8b69 (patch) | |
tree | 198644ad884a659682d832384093a3cb063868bd /core/js | |
parent | 528a903a7b23ea628e6ec2fc9a221821297c0bec (diff) | |
download | nextcloud-server-703f2e6a61bf51e6540a57039d21acb975bd8b69.tar.gz nextcloud-server-703f2e6a61bf51e6540a57039d21acb975bd8b69.zip |
Clear onpopstate handlers after unit tests
Fixes issue when running Karma tests in Firefox.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/tests/specHelper.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/tests/specHelper.js b/core/js/tests/specHelper.js index f9bdeae0d64..7897a2f2842 100644 --- a/core/js/tests/specHelper.js +++ b/core/js/tests/specHelper.js @@ -177,6 +177,10 @@ window.isPhantom = /phantom/i.test(navigator.userAgent); delete($.fn.select2); ajaxErrorStub.restore(); + + // reset pop state handlers + OC.Util.History._handlers = []; + }); })(); |