aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/tests/specHelper.js
Commit message (Collapse)AuthorAgeFilesLines
* fix(tests): Adjust legacy tests for nextcloud-router updateFerdinand Thiessen2024-01-251-2/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Use @nextcloud/sharing in files and files_sharingLouis Chemineau2022-01-261-0/+8
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> Update tests Signed-off-by: Louis Chemineau <louis@chmn.me>
* jsunit: Add proper lang tag to documentJulius Härtl2020-12-291-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move OC.theme to the bundle and deprecate oc_defaultsChristoph Wurst2019-05-141-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move OC.appswebroots to the bundle and deprecate oc_appswebrootsChristoph Wurst2019-05-071-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move oc_webroot, OC.webroot and OC.getRootPath() to the bundleChristoph Wurst2019-05-061-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move oc_appconfig/OC.appConfig to the main bundleChristoph Wurst2019-05-061-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Deprecate oc_isadmin and move OC.isUserAdmin() to the bundleChristoph Wurst2019-05-031-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move oc_config to the bundleChristoph Wurst2019-05-021-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix testsJulius Härtl2019-03-011-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fixed jsunitJohn Molakvoæ (skjnldsv)2018-11-011-0/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge tips & tricks section into setup checksMorris Jobke2018-06-131-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #3950 from nextcloud/downstream-27149Lukas Reschke2017-03-201-1/+2
|\ | | | | Forbid to upload part files via web UI
| * Add ignore_files to config,Felix Heidecke2017-03-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test files against ignore_files list on upload fix typo and indentation Move blacklist declaration to lib/public/Files/FileInfo.php, Rename *ignored to *blacklisted Mocked blacklist_files for testing Mocked blacklist_files for testing Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Clear onpopstate handlers after unit testsVincent Petry2017-03-191-0/+4
|/ | | | | | Fixes issue when running Karma tests in Firefox. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add handler for global ajax errorsVincent Petry2016-02-151-1/+6
|
* System tags sidebar selector now respects permissionsVincent Petry2016-01-251-0/+1
| | | | | | | For admins: display the namespace behind the tag name. For users: no namespace, don't display non-assignable tags in the dropdown, display already assigned non-assignable tags with a different style
* Added system tags GUI in sidebarVincent Petry2016-01-191-1/+1
| | | | | Added files details sidebar panel to assign/unassign/rename/delete system tags.
* Added OC.Files.Client Webdav-based files clientVincent Petry2015-11-221-0/+1
|
* Make short versions of weekday/month names translatableHasso Tepper2015-08-211-0/+32
|
* Set momentJS locale to en during unit test runsVincent Petry2015-08-071-0/+2
|
* Use storage id + appframework for ext storage CRUDVincent Petry2015-03-121-0/+5
| | | | | | | | | | | | | - Added StorageConfig class to replace ugly arrays - Implemented StorageService and StorageController for Global and User storages - Async status checking for storages (from Xenopathic) - Auto-generate id for external storage configs (not the same as storage_id) - Refactor JS classes for external storage settings, this mostly moves/encapsulated existing global event handlers into the MountConfigListView class. - Added some JS unit tests for the external storage UI
* Simple Plugin system for JavascriptVincent Petry2014-12-011-0/+3
|
* Added OC.L10N namespace with translation functionsVincent Petry2014-10-291-9/+0
| | | | | | | | | | | Added addTranslations and fixed de.js file Fixed de.js to use OC.L10N.register() and use to correct expected format. Added JS unit tests for OC.L10N class Include translations JS script for all apps
* Merge pull request #7254 from owncloud/core-sortalgoLukas Reschke2014-09-161-0/+2
|\ | | | | Fixed JS sort comparator to be consistent between JS and PHP
| * Fixed file list sortingVincent Petry2014-08-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Now using a natural sort algorithm that is more consistent between JS and PHP (although not perfect in some corner cases) - added OC.Util.naturalSortComparator that uses the same algo that was used for the user list - changed user list and files list to use OC.Util.naturalSortComparator - removed toLowerCase() and changed the comparator to use String.localeCompare() - added unit tests - added OC_NaturalSort that is used by OCP\Util::naturalSortCompare()
* | Fixed folder icon update routine when share owner existsVincent Petry2014-08-151-0/+24
|/ | | | | Whenever a folder has a "data-share-owner" attribute, the icon is now properly updated to a shared folder icon.
* Test runner now loads CSS and hides testAreaVincent Petry2014-06-241-1/+1
| | | | | | | - 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
* Fixed Snap mockVincent Petry2014-06-061-5/+10
| | | | Also fixed JSHint errors
* close sidebar when switching navigation entry, except on add or change settingsJan-Christoph Borchardt2014-06-051-0/+3
|
* Scrutinizer cleanupkondou2014-06-021-1/+2
|
* Added ground work for OC.Share unit testsVincent Petry2014-05-131-0/+3
|
* Merge pull request #7592 from owncloud/fixstoragefreespaceVincent Petry2014-03-061-0/+7
|\ | | | | Fixed upload issue when free space is not known (ex: FTP)
| * Added testArea for JS Unit testsVincent Petry2014-03-061-0/+7
| | | | | | | | | | | | | | | | | | | | Added a testArea that is outside the viewport but still considered as visible from the jQuery code. The testArea is useful when: - tested code tries to access DOM elements using global ids - tested code is requiring some UI elements to be visible to activate themselves
* | Removed obsolete OC.Router stubs in specHelperVincent Petry2014-03-051-10/+0
| |
* | fixing js unit testsThomas Müller2014-03-051-0/+1
|/
* Added oc_defaults stub in specHelper.jsVincent Petry2014-02-241-0/+1
| | | | | This is needed for JS Unit tests to run properly as they are expecting the new "oc_default" map to exist.
* Added unit tests for session_keepalive / heartbeatVincent Petry2014-02-041-1/+17
|
* Added Javascript unit testsVincent Petry2014-01-161-0/+89
- 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