summaryrefslogtreecommitdiffstats
path: root/tests/karma.config.js
Commit message (Collapse)AuthorAgeFilesLines
* Add timeout to user and group deletion notificationVincent Petry2014-09-181-1/+9
| | | | | | | | | | | | | | | | | | | | Added timeout in DeleteHandler to auto-delete after a delay. Fixed issue where OC.Notification.hide() was called twice in a row when deleting multiple entries, causing the second notification to disappear. Fixed issue where "undo" click event handler was registered multiple times when calling setNotifications() twice. Added JS unit tests for the DeleteHandler class. Refix undo users, groups feature Timeout is now cleared in cancel(). Fixed click handler name for "undo" to be able to work with multiple DeleteHandler instances (in our case one for users and one for groups) so that there is no conflict. Backport of 0d9f24a0efef20b9041e40817b10822a4700532d from master
* Test runner now loads CSS and hides testAreaVincent Petry2014-06-241-6/+12
| | | | | | | - serve CSS and font files properly to make sure that measurements are correct for the tests that need them (breadcrumb) - added opacity to testArea to make sure nothing is visible during testing
* Added JS unit tests for ext storageVincent Petry2014-06-171-0/+10
| | | | Added JS unit tests for the external storage file list extension.
* Added unit tests for share.js and share iconVincent Petry2014-06-021-1/+2
|
* Sharing overview fixes and unit testsVincent Petry2014-05-301-8/+35
| | | | | | | | | | | | - 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
* Namespacing for FileList, FileActions and trashbin appVincent Petry2014-05-151-1/+1
| | | | | | | | | | | | | | | | | - 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
* Remove annoying karma 404 warnings for imagesVincent Petry2014-04-111-0/+8
| | | | | | | Karma now serves images from core to avoid polluting the logs with a lot of 404 warnings. This also makes it easier to read the test errors during development.
* Enable autowatch for karmaVincent Petry2014-04-081-1/+1
| | | | | This way unit tests can be run in multiple browsers with the command line and tests will re-run automatically when files are changed.
* Fixed unit test scripts + coverageVincent Petry2014-01-301-12/+52
| | | | | Tried to add more apps (others break). "preprocessors" is now populated automatically based on the tested apps.
* adding code coverage supportThomas Müller2014-01-211-1/+12
|
* Added Javascript unit testsVincent Petry2014-01-161-0/+138
- added karma utility to run jasmine unit tests - added Sinon library (for stubs/mocks/fakeserver) - added a few unit tests for core and files - added autotest-js.sh script