summaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js/filelistSpec.js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2014-06-27 13:51:18 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-06-27 13:51:18 +0200
commitb975f0e7184f769d9bc857c1e6db90006b45e2c8 (patch)
treea041f595dd56094160cf3aeb79f55b542a25db44 /apps/files/tests/js/filelistSpec.js
parent4d6019b73fd8b1a1d8e8fecbeb129bea12feb89d (diff)
parentec4cf96f0d4f170b21d77378e4f11b88b01aaebc (diff)
downloadnextcloud-server-b975f0e7184f769d9bc857c1e6db90006b45e2c8.tar.gz
nextcloud-server-b975f0e7184f769d9bc857c1e6db90006b45e2c8.zip
Merge pull request #9174 from owncloud/breadcrumbfix
Breadcrumb width calculation fix
Diffstat (limited to 'apps/files/tests/js/filelistSpec.js')
-rw-r--r--apps/files/tests/js/filelistSpec.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js
index dea7c48e05e..318f66825a6 100644
--- a/apps/files/tests/js/filelistSpec.js
+++ b/apps/files/tests/js/filelistSpec.js
@@ -21,6 +21,7 @@
describe('OCA.Files.FileList tests', function() {
var testFiles, alertStub, notificationStub, fileList;
+ var bcResizeStub;
/**
* Generate test file data
@@ -52,6 +53,9 @@ describe('OCA.Files.FileList tests', function() {
beforeEach(function() {
alertStub = sinon.stub(OC.dialogs, 'alert');
notificationStub = sinon.stub(OC.Notification, 'show');
+ // prevent resize algo to mess up breadcrumb order while
+ // testing
+ bcResizeStub = sinon.stub(OCA.Files.BreadCrumb.prototype, '_resize');
// init parameters and test table elements
$('#testArea').append(
@@ -125,6 +129,7 @@ describe('OCA.Files.FileList tests', function() {
notificationStub.restore();
alertStub.restore();
+ bcResizeStub.restore();
});
describe('Getters', function() {
it('Returns the current directory', function() {