server/core/js/tests/specs
Daniel Calviño Sánchez 03f2e8a10e Fix default timeouts in OC.Notification
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>
2019-07-26 18:46:59 +02:00
..
files Fix expected depth as string 2019-01-24 21:15:25 +01:00
public Improve URL detection 2018-07-31 17:11:46 +02:00
systemtags
appsSpec.js Jsunit fixes 1 2018-07-20 23:38:04 +02:00
contactsmenuSpec.js There was an error loading → could not load 2018-01-20 09:15:50 +01:00
coreSpec.js Fix default timeouts in OC.Notification 2019-07-26 18:46:59 +02:00
jquery.avatarSpec.js Fix tests 2018-01-08 10:36:06 +01:00
jquery.contactsmenuSpec.js Tests: Remove spacing from html before comparing the template 2018-10-16 10:49:34 +02:00
l10nSpec.js Fix js l10n registration to also work with more than one bundle 2019-06-26 10:07:21 +02:00
mimeTypeSpec.js Fix usage of deprecated OC.webroot 2018-10-09 13:53:59 +02:00
oc-backbone-webdavSpec.js
setupchecksSpec.js Merge pull request #16070 from nextcloud/fix/setup-check-no-internet-no-error 2019-06-28 10:54:29 +02:00
sharedialoglinkshareview.js Move OC.appswebroots to the bundle and deprecate oc_appswebroots 2019-05-07 14:03:14 +02:00
sharedialogshareelistview.js Deprecate oc_current_user, fix usage and move currentUser to the bundle 2019-05-08 09:44:51 +02:00
sharedialogviewSpec.js Adjust jsunit tests for new toast library 2019-06-07 07:32:48 +02:00
shareitemmodelSpec.js Move oc_appconfig/OC.appConfig to the main bundle 2019-05-06 13:36:23 +02:00
shareSpec.js Move oc_appconfig/OC.appConfig to the main bundle 2019-05-06 13:36:23 +02:00