Skip to content

Instantly share code, notes, and snippets.

@pellaeon
Last active March 23, 2016 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pellaeon/3c4d9bf114d074f7789b to your computer and use it in GitHub Desktop.
Save pellaeon/3c4d9bf114d074f7789b to your computer and use it in GitHub Desktop.
PhantomJS 2.1.1 (Linux 0.0.0) OCA.Files.FileList tests loading file list scroll distance is read from sessionStorage FAILED
TypeError: null is not an object (evaluating 'getItemStub.getCall(0).args') in /var/www/html/owncloud/apps/files/tests/js/filelistSpec.js (line 1391)
/var/www/html/owncloud/apps/files/tests/js/filelistSpec.js:1391:33
it('scroll distance is passed to sessionStorage ', function() {
var setItemStub = sinon.stub(window.sessionStorage, 'setItem');
fileList.changeDirectory('/somedir');
fileList.changeDirectory('/anotherdir');
expect(setItemStub.getCall(0).args[0]).toEqual('/subdir');
expect(setItemStub.getCall(0).args[1]).toEqual('0');
expect(setItemStub.getCall(1).args[0]).toEqual('/somedir');
expect(setItemStub.getCall(1).args[1]).toEqual('0');
setItemStub.restore();
getFolderContentsStub.restore();
});
it('scroll distance is read from sessionStorage', function() {
var getItemStub = sinon.stub(window.sessionStorage, 'getItem');
fileList.changeDirectory('/somedir');
fileList.changeDirectory('/anotherdir');
expect(getItemStub.getCall(0).args[0]).toEqual('/somedir');
expect(getItemStub.getCall(1).args[0]).toEqual('/anotherdir');
getItemStub.restore();
getFolderContentsStub.restore();
});
PhantomJS 2.1.1 (Linux 0.0.0) OCA.Sharing.PublicApp tests File list Uses public webdav endpoint FAILED
TypeError: null is not an object (evaluating 'this.$container.scrollTop().toString') in /var/www/html/owncloud/apps/files/js/filelist.js (line 1320)
changeDirectory@/var/www/html/owncloud/apps/files/js/filelist.js:1320:66
initialize@/var/www/html/owncloud/apps/files_sharing/js/public.js:9:10791
/var/www/html/owncloud/apps/files_sharing/tests/js/publicAppSpec.js:83:18
Expected 0 to equal 1.
/var/www/html/owncloud/apps/files_sharing/tests/js/publicAppSpec.js:90:46
TypeError: undefined is not an object (evaluating 'fakeServer.requests[0].method') in /var/www/html/owncloud/apps/files_sharing/tests/js/publicAppSpec
.js (line 91)
/var/www/html/owncloud/apps/files_sharing/tests/js/publicAppSpec.js:91:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment