summaryrefslogtreecommitdiffstats
path: root/apps/files/tests
Commit message (Collapse)AuthorAgeFilesLines
* Correctly restore previous root mount point after testingJoas Schilling2014-11-171-2/+12
|
* JS unit tests fix - use toBeUndefined() instead of toEqual(null)Morris Jobke2014-11-041-7/+7
|
* remove unnecessary require calls - the ownCloud class loader is supposed to ↵Thomas Müller2014-10-301-2/+0
| | | | take care of this
* Changed fileList.pageSize to function callNazar Mokrynskyi2014-10-151-1/+1
|
* TypoNazar Mokrynskyi2014-10-151-1/+1
|
* Stub for pageSize, because now it is dynamically calculatedNazar Mokrynskyi2014-10-151-2/+3
|
* correct progress-icon to icon-loading-smallJan-Christoph Borchardt2014-09-221-3/+3
|
* correct delete-icon to icon-delete, fix #11128Jan-Christoph Borchardt2014-09-221-3/+3
|
* Tentative fix for legacy file actions unit test side effectVincent Petry2014-09-161-0/+4
| | | | | | | Sometimes the JS unit test with legacy file actions fail. This fix runs the legacy file actions tests on a dummy instead of the real one.
* Added permission check for drag and dropVincent Petry2014-09-041-1/+10
| | | | | | | | When dropping files onto a read-only folder, a notification is now shown instead of attempting to upload. This for both the drag for upload and drag from inside the file list cases.
* Fixed folder icon update routine when share owner existsVincent Petry2014-08-151-16/+6
| | | | | Whenever a folder has a "data-share-owner" attribute, the icon is now properly updated to a shared folder icon.
* new unit test addedBjoern Schiessle2014-08-111-4/+42
|
* Merge pull request #9683 from owncloud/fix_#8819_sortingVincent Petry2014-07-221-19/+32
|\ | | | | Fix #8819 sorting
| * Adjusted tests for new default sortingRemco Brenninkmeijer2014-07-171-19/+32
| |
* | Propagate file action changes to the file listsVincent Petry2014-07-092-6/+4
|/ | | | | | | | | Whenever an app needs to register an event late, it does that on the original file actions object. Since the file actions that the file list work on is a merged list, not the original one, the registration event needs to be propagated there as well.
* Add machine readable error messages to OC\JSONRobin Appelman2014-07-041-0/+26
| | | | | | | | | | Reload the files app in case of authentication errors, expired tokens or disabled app Reloading will triger the full server side handeling of those errors formatting fix missing semicolon + some jshint warnings
* Fix FileActions merging overrideVincent Petry2014-07-041-0/+150
| | | | | | When merging FileActions, the register() functio needs to correctly override the previously merged action handler without affecting the original one.
* Use fileActionsReady to re-render sharing iconsVincent Petry2014-07-011-1/+12
| | | | | | | | | Whenever file actions are modified, either by registering new actions or when appending a new page of entries, the sharing app is now notified so it can correctly refresh the sharing icon status. Additionally, the core's loadIcons() method is also used to load the existing shares and also refresh the sharing icons afterwards.
* Fix fileActionsReady event after deferred file actions updateVincent Petry2014-07-011-0/+9
|
* Merge pull request #9254 from owncloud/fileactions-deferredMorris Jobke2014-06-272-1/+84
|\ | | | | Sync file list with file actions
| * Sync file list with file actionsVincent Petry2014-06-272-1/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever file actions are registered later, now the file lists are automatically notified. Added FileActions.addUpdateListener() to be able to receive such notifications. This removes the need for apps to manually call FileActions.display() after registering new actions. This fixes issues with race conditions when file actions are registered after the file list was already rendered.
* | Merge pull request #9174 from owncloud/breadcrumbfixJan-Christoph Borchardt2014-06-272-42/+42
|\ \ | |/ |/| Breadcrumb width calculation fix
| * Breadcrumb width calculation fixVincent Petry2014-06-272-42/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrote the breadcrumb calculation to be more readable. Breadcrumb now has a setMaxWidth() method to set the maximum allowed width which is used to fit the breadcrumbs. The breadcrumb width is now based on the container width, passed through setMaxWidth() by the FileList class. Now using fixed widths for the test crumbs to simulate consistent widths across browsers which rendering engines might usually yield different results.
* | Merge pull request #9170 from owncloud/files-renamevalidationblurLukas Reschke2014-06-231-0/+41
|\ \ | | | | | | Fix blurring of invalid file name on rename
| * | Fix blurring of invalid file name on renameVincent Petry2014-06-231-0/+41
| |/ | | | | | | | | | | | | | | When renaming to an existing file name, blurring the field should not remove it. This fix keeps the field until escape is pressed instead of replacing it with a broken empty space.
* | Merge pull request #8931 from owncloud/filelist-usepathforactionVincent Petry2014-06-232-2/+7
|\ \ | |/ |/| [master] Use actual file path on rename/delete
| * Use actual file path on rename/deleteVincent Petry2014-06-062-2/+7
| | | | | | | | | | | | | | When renaming or deleting a file that is in a subdirectory, performing the action from the sharing overview or another file list view, the actual directory of the file must be used instead of the current directory.
* | Clear file selection when list is repopulatedVincent Petry2014-06-231-1/+33
| | | | | | | | | | When calling FileList.setFiles() the current selection needs to be cleared.
* | Fix appending of rows after uploadVincent Petry2014-06-191-24/+2
|/ | | | | | | | | | | When uploading files or folders, they only need to be appended or updated when their path or a section of their path is inside the current directory (which happens for folder upload) Fixes issue where file was appended when dragging on a parent directory onto the breadcrumb. Fixes appending issue when uploading folders.
* Fix unit testRobin Appelman2014-06-061-1/+1
|
* Fix unit testsRobin Appelman2014-06-061-1/+1
|
* Fix testsJoas Schilling2014-06-031-8/+8
|
* display "<1 kB" for really small filesMorris Jobke2014-06-021-1/+1
| | | | | * added parameters for humanFileSize to trigger that behaviour * add unit tests for that
* Merge pull request #8663 from owncloud/files-dndissueLukas Reschke2014-05-301-0/+137
|\ | | | | Fixed drag and drop from external files, added tests
| * Fix dropping files below the tableVincent Petry2014-05-221-1/+7
| |
| * Fixed drag and drop from external files, added testsVincent Petry2014-05-211-0/+131
| | | | | | | | | | | | | | | | - Fixed detection whether the drop zone is inside the currently visible table - Now dragging outside the table does nothing instead of uploading, because the user might drop on the sidebar - Added unit tests for the drop handler
* | Sharing overview fixes and unit testsVincent Petry2014-05-302-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | - Fixed renaming and fileActionsReady event - Added unit tests for shares list - Fixed public page with defer - Fixed file actions in sharing overview - Fixed sharing counterpart list (10 entries max) - Fixed file path attribute to be used in download action - Fix sharing list headers - OC.Share icons now operate on fileList instance - Fix OC.Share.updateIcon when more than one list in DOM
* | Distinguish legacy file actions from regular file actionsVincent Petry2014-05-303-10/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Legacy file actions are registered by legacy apps through window.FileActions.register(). These actions can only be used by the main file list ("all files") because legacy apps can only deal with a single list / container. New file actions of compatible apps must be registered through OCA.Files.fileActions. These will be used for other lists like the sharing overview. Fixed versions and sharing actions to use OCA.Files.fileActions, which makes them available in the sharing overview list.
* | Added "dir" in file actions handler context and fixed versionsVincent Petry2014-05-302-0/+34
| | | | | | | | | | | | | | | | | | Added "dir" in file actions handler context so that handlers can know what the path of the file was without having to look it up from the file list. Fixed versions app to use the context.dir instead of the old $('#dir') element. This makes the versions popup work in the sharing overview.
* | Add unit tests for fileActionsReadyVincent Petry2014-05-301-0/+14
| |
* | Added unit test for file action context argumentVincent Petry2014-05-301-4/+32
|/
* Merge pull request #8612 from owncloud/share-updateshareiconsafterrenameBjörn Schießle2014-05-211-13/+52
|\ | | | | [master] Fixed issues with renaming
| * Fixed issues with renamingVincent Petry2014-05-161-13/+52
| | | | | | | | | | | | | | | | - summary is now untouched on rename instead of bogus incrementation - fixes "Share" status icon by only triggring "fileActionsReady" once - row is now reinserted even when rename is cancelled, this removes the hacky/buggy code that tried to rename the element back - added unit tests to cover the fixed cases
* | Remove all occurences of @brief and @returns from PHPDocMorris Jobke2014-05-191-1/+1
| | | | | | | | * test case added to avoid adding them later
* | Merge pull request #8435 from owncloud/fix-8322-masterThomas Müller2014-05-191-1/+11
|\ \ | |/ |/| Expose permission via WebDAV
| * fix broken unit testThomas Müller2014-05-021-1/+11
| |
* | Fixed many issues, clean upVincent Petry2014-05-153-60/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fixed upload and storage statistics - fixed infinite scroll to use the correct contain for scroll detection - fixed unit test that sometimes fail for rename case - controls are now sticky again - fixed selection overlay to be aligned with the table - fixed "select all" checkbox that had id conflicts - fixed public page - fixed global actions permissions detection - fix when URL contains an invalid view id - viewer mode now hides the sidebar (ex: text editor) - added unit tests for trashbin - clean up storage info in template (most is retrieved via ajax call now)
* | Namespacing for FileList, FileActions and trashbin appVincent Petry2014-05-156-322/+495
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - FileList is now an instantiable class - FileActions is now in namespace - added App class for trashbin app - moved trashbin overrides into classes extending FileList - replaced many static calls with "this." or "self." to make the classes reusable/extendable - new URL parameter "view" to specify which view is shown, for example "files" or "trashbin" - added OC.Util.History utility class in core for handling history - moved URL handling/routing to OCA.Files.App - popstate will correctly update the current view and notify the view of the URL change so it can update the current dir - added JS unitt tests for the trashbin app - fixed public app to work with the new namespaces
* | Merge pull request #8041 from owncloud/files-sortcolumnsVincent Petry2014-05-122-7/+254
|\ \ | |/ |/| File list sorting by clicking on column headers
| * Clear selection on reload (when changing sort)Vincent Petry2014-04-291-0/+6
| |