aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/tests/js/versionmodelSpec.js
Commit message (Collapse)AuthorAgeFilesLines
* Lint and remove file_versions testsLouis Chemineau2022-11-281-124/+0
| | | | 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>
* Bump js licensesJohn Molakvoæ (skjnldsv)2021-03-311-4/+19
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Set error expected by the DAV client for a failed moveDaniel Calviño Sánchez2018-10-251-2/+10
| | | | | | | | | | | | | A revert triggers a move in the DAV client, and the DAV client expects a DAV error message to be provided by the server in case of failure; if no error message is given the client ends trying to get an attribute from an undefined object and "crashes". Besides that, if the revert fails the "done" callback of the promise (the first parameter of "then") is never called, so a "fail" callback should be used instead. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Wait for the promise to be fulfilled before running the next testDaniel Calviño Sánchez2018-10-251-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | In Jasmine 2.5 the "it" function takes an optional parameter that should be called when the async work is completed (returning a promise was introduced in Jasmine 2.7, so it is not supported yet in the tests). If the parameter is not declared then the next test is executed without waiting for the asynchronous work in the previous one to finish, which could cause that asynchronous work to finish while a different test is being run. Note that if that happens the test could still work as expected if it relied only in local variables. However, in the case of the successful revert tests, the stubs being checked are not the ones created when that test was initialized, but the ones created when the next test, the failed revert test, was initialized and the previous variables were replaced (although the model itself calls the proper stubs, as they are set through parameters in function calls). Besides all that, the checks in the failed revert test were never executed due to a different problem which will be fixed in the next commit. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* move versions webui over to the dav apiRobin Appelman2018-10-111-28/+31
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add versions tab to files sidebarVincent Petry2015-09-031-0/+96
- move versions to a tab in the files sidebar - added mechanism to auto-update the row in the FileList whenever values are set to the FileInfoModel given to the sidebar - updated tags/favorite action to make use of that new mechanism