summaryrefslogtreecommitdiffstats
path: root/core/js/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove legacy Internet Explorer headersMichaIng2022-03-191-26/+0
| | | | | | X-UA-Compatible and X-Download-Options headers are interpreted or relevant for Internet Explorer only. With the deprecation of Internet Explorer support in Nextcloud 20 and planned support removal already in Nextcloud 22, these became obsolete and are hereby removed, including their removal from setup checks. Signed-off-by: MichaIng <micha@dietpi.com>
* fix testsszaimen2022-03-071-0/+154
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Add Nextcloud docs link to OPcache recommendsMichaIng2022-03-031-4/+1
| | | | | | | | A link to the Nextcloud documentation is currently only shown when the OPcache module is not loaded at all. This commit moves the link to the generic text above the individual recommendations list. Additionally remove the obsolete phpOpcacheDocumentation entry from test data arrays, which is not passed anymore by the backend. Signed-off-by: MichaIng <micha@dietpi.com>
* add a test for wasEmailTestSuccessfulszaimen2022-02-031-0/+56
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* fix testsszaimen2022-02-031-0/+18
| | | | Signed-off-by: szaimen <szaimen@e.mail.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>
* Fix contactmenu testsLouis Chemineau2022-01-181-5/+5
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Replace license information to SPDX expressionLouis Chemineau2022-01-111-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Typing correctionsLouis Chemineau2022-01-111-2/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix JS tests after test lib updatesVincent Petry2022-01-102-6/+11
| | | | | | | Prevent XHR during load by checking window.TESTING. Adjust some expected values. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Enhance and complement OPcache setup checksMichaIng2021-12-191-93/+19
| | | | | | | | | | | | | | The current OPcache recommendations match the PHP defaults, but the values are much higher than required to run Nextcloud, even with a high number of installed apps. On the other hand, when other applications use the same OPcache instance, the recommended values might not be sufficient. Accurate recommendations need to take into account actual OPcache usage. With this commit, recommendations are shown to raise the config value if more than 90% of max cache size or number of keys is used. The checks whether the module is loaded and whether the OPcache is properly configured have been merged into a single function. This allowed to reduce the overhead of OPcache configuration checks when the module is not loaded. A check has been added whether Nextcloud is permitted to use the OPcache API. Without this, inconsistencies during core or app upgrades may cause errors and OPcache usage cannot be determined for the new usage based checks. OPcache usage based checks are skipped when Nextcloud is not permitted to use the API. Signed-off-by: MichaIng <micha@dietpi.com>
* Show warning on admin settings pageVitor Mattos2021-10-231-0/+19
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Merge pull request #28863 from nextcloud/Valdnet-patch-2Carl Schwan2021-09-221-4/+4
|\ | | | | l10n: Correct spelling
| * Correct spelling in testValdnet2021-09-221-4/+4
| | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | Issue 16719: CheckSetupController.php: bugfix: test-setup was incorrectStefan2021-09-171-1/+1
| | | | | | | | Signed-off-by: Stefan <Stefan.Schilling@EXXETA.com>
* | Issue 16719: CheckSetupController.php now checks configured temporary ↵Stefan2021-09-171-0/+72
|/ | | | | | directory for existence and if it's writable Signed-off-by: Stefan <Stefan.Schilling@EXXETA.com>
* fix broken js testGuillaume Virlet2021-04-241-0/+55
| | | | Signed-off-by: Guillaume Virlet <github@virlet.org>
* Fix the jsunit testsRoeland Jago Douma2021-03-021-1/+1
| | | | | | Followup to #25874 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Hello 2016Joas Schilling2021-03-011-16/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove HTML from setup check translationsJoas Schilling2021-03-011-21/+21
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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>