diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-06-27 13:51:18 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-06-27 13:51:18 +0200 |
commit | b975f0e7184f769d9bc857c1e6db90006b45e2c8 (patch) | |
tree | a041f595dd56094160cf3aeb79f55b542a25db44 /apps/files/tests/js/filelistSpec.js | |
parent | 4d6019b73fd8b1a1d8e8fecbeb129bea12feb89d (diff) | |
parent | ec4cf96f0d4f170b21d77378e4f11b88b01aaebc (diff) | |
download | nextcloud-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.js | 5 |
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() { |