summaryrefslogtreecommitdiffstats
path: root/core/js/tests
Commit message (Collapse)AuthorAgeFilesLines
* jsunit: harden avatar tests to pass with fractional scaling of elementsJulius Härtl2020-12-291-8/+8
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* jsunit: Add proper lang tag to documentJulius Härtl2020-12-291-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #24702 from nextcloud/enhancement/well-known-handler-apiChristoph Wurst2020-12-181-4/+4
|\ | | | | Add well known handlers API
| * Add well known handlers APIChristoph Wurst2020-12-161-4/+4
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #24740 from nextcloud/bugfix/24738/improve-phone-region-helpJulius Härtl2020-12-171-1/+1
|\ \ | | | | | | Improve hints for default_phone_region
| * | Improve hints for default_phone_regionJoas Schilling2020-12-171-1/+1
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / promoted bad memory_limit setting to error as it may break updaterArthur Schiwon2020-12-151-1/+1
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add a config for default region of phone numbersJoas Schilling2020-12-071-0/+69
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump jquery from 2.2.4 to 3.1.0Christoph Wurst2020-11-135-82/+135
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Create primary keys on all tables and add a command to create the afterwardsJoas Schilling2020-11-101-0/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Work around snap.js state messVincent Petry2020-11-021-1/+5
| | | | | | | | | | | | | | | | | | | Snap.js is not robust enough to prevent multiple calls to open() or close(), so we added more checks to prevent these happening even when an animation is in progress. Because if we let this through, snap.js will not notice that the animation is already done (or a duplicate animation was started), so the "transitionend" event will not fire a second time. During an animation, snap.js sets up a setInterval() that hogs the CPU during the animation. Since a transition doesn't always end due to the above conditions, that CPU hogging would stay forever. This is the best workaround so far, it seems it's not possible to cancel that interval from the outside nor to trigger events to make it do so. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Compile assetsnpmbuildbot[bot]2020-10-281-5/+5
| | | | | Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move humanFileSize and OC.getCanonicalLocale to npm packagesChristoph Wurst2020-06-051-88/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Generate legacy image placeholder text by taking first lettersSergey Shliakhov2020-04-301-0/+43
| | | | | | | https://github.com/nextcloud/server/issues/19335 Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Inline usages of OCP.Toast in bundled filesChristoph Wurst2020-04-061-37/+24
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update new test as wellJoas Schilling2020-04-011-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add optional column oc_comments.reference_idJoas Schilling2020-03-311-0/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add basic reverseproxy misconfig detection to setupchecksRoeland Jago Douma2020-03-231-15/+81
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix sharing breadcrumbsJohn Molakvoæ (skjnldsv)2019-11-065-4588/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use @nextcloud/paths and deprecate OC helpersChristoph Wurst2019-10-051-207/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove the tests since the library is testedRoeland Jago Douma2019-10-041-11/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* adviced should be advisedVictor Goff2019-08-231-1/+1
| | | | Signed-off-by: Victor Goff <keeperotphones@gmail.com>
* Add unit tests for "OC.Notification.hide()"Daniel Calviño Sánchez2019-07-261-0/+56
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix default timeouts in OC.NotificationDaniel Calviño Sánchez2019-07-261-4/+30
| | | | | | | | | | | | | | | | | | | | | | When no timeout was given "show()" used the default timeout of "OCP.Toast", which is 7 seconds instead of indefinitely as stated in the documentation of "show()". "showHtml()" should also indefinitely show the notification if no timeout is given, but due to the strict comparison the notification was indefinitely shown only when a timeout of 0 was explicitly given. Now both methods show the notification indefinitely (or until it is explicitly hidden) when no timeout is given. The unit tests did not catch this error because "showHtml()" had no tests (as before the move to Toastify it was called from "show()" and thus implicitly tested), and because "show()" verified that "hide()" was not called after some time; "hide()" is no longer called from "show()" since "OCP.Toast" is used internally, so the test always passed even if the notification was indeed hidden. Now the test is based on whether the element is found or not, and explicit tests were added too for "showHtml()". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix mixed test for "show" and "showTemporary"Daniel Calviño Sánchez2019-07-261-1/+19
| | | | | | | | "showTemporary()" when a timeout was given was being tested along with the "show()" tests; now there are two separate tests when a timeout is given, one for "showTemporary()" and one for "show()". Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Check number of elements instead of if the jQuery object is definedDaniel Calviño Sánchez2019-07-261-4/+4
| | | | | | | | Tje jQuery object created through "$('#testArea .toastify')" will be always defined even if no elements were found, so the check does not really work; instead, it should be checked the number of elements found. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Rename parameter in OCP.Toast for consistency with OC.NotificationDaniel Calviño Sánchez2019-07-121-6/+11
| | | | | | | | This fixes HTML messages in "OC.Notification.showTemporary" (as "showHtml" was not set based on "isHTML"), and also makes OCP.Toast to keep the old OC.Notification API when used directly. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Merge pull request #16070 from nextcloud/fix/setup-check-no-internet-no-errorRoeland Jago Douma2019-06-281-17/+17
|\ | | | | Do not show a internet connectivity warning if internet access is dis…
| * Do not show a internet connectivity warning if internet access is disabledChristoph Wurst2019-06-271-17/+17
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix js l10n registration to also work with more than one bundleChristoph Wurst2019-06-261-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Move font from Nunito to Noto SansJan-Christoph Borchardt2019-06-221-2/+2
|/ | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Adjust jsunit tests for new toast libraryJulius Härtl2019-06-072-104/+45
| | | | 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 l10n functions to the bundleChristoph Wurst2019-05-131-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move initCore to the bundleChristoph Wurst2019-05-101-5/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove recommendation for opcache on CLIMorris Jobke2019-05-091-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Deprecate oc_current_user, fix usage and move currentUser to the bundleChristoph Wurst2019-05-081-9/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move OC.appswebroots to the bundle and deprecate oc_appswebrootsChristoph Wurst2019-05-072-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move oc_webroot, OC.webroot and OC.getRootPath() to the bundleChristoph Wurst2019-05-062-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move oc_appconfig/OC.appConfig to the main bundleChristoph Wurst2019-05-065-12/+11
| | | | 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>
* Change oc_config usage to OC.configChristoph Wurst2019-05-022-11/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #14603 from ↵Morris Jobke2019-03-081-14/+77
|\ | | | | | | | | nextcloud/fix/noid/add-setup-check-for-s3-temp-path Show a setup warning in case S3 object storage is used as primary storage
| * Show a setup warning in case S3 object storage is used as primary storageMorris Jobke2019-03-081-14/+77
| | | | | | | | | | | | * checks for at least 50 GB of free space Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix domparser on phantomjsJulius Härtl2019-03-071-0/+46
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix testsJulius Härtl2019-03-011-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add setup check for missing UTF8MB4 on mysqlMorris Jobke2019-02-281-13/+74
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Search sharees on lookup server when explicitly requested by userChristoph Wurst2019-02-261-36/+106
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add unit tests and provide better messageMorris Jobke2019-02-201-0/+36
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>