summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2017-02-27 10:06:53 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-03-19 23:15:21 -0600
commit703f2e6a61bf51e6540a57039d21acb975bd8b69 (patch)
tree198644ad884a659682d832384093a3cb063868bd /core/js
parent528a903a7b23ea628e6ec2fc9a221821297c0bec (diff)
downloadnextcloud-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.js4
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 = [];
+
});
})();