zotero/test
Abe Jellinek 5d197e4b12 Mostly complete (read-only) compatibility with web library (#4270)
- Add pagination, limits, and Link header
- Add schema endpoints and dummy /settings endpoint
- Add /file endpoints
  - Browser security restrictions prevent the web library from actually loading
    the file: URIs that the local API returns, but out-of-browser use will work
    fine
- Add toResponseJSONAsync() DataObject function: delegates to toResponseJSON()
  by default, adds information that requires awaiting promises
  - Best attachment (links.attachment) and file size (links.enclosure.length)
    for items, meta.numItems for groups
  - Separate function for compatibility with the existing test code that uses
    toResponseJSON(), but we could consider unifying

This commit does not add the Access-Control headers that allow webpages to make
requests to the local API, since I don't think we actually want that.
2024-06-12 05:45:48 -04:00
..
components Switch back to @mozilla.org/browser/clh;1 and fix tests 2023-05-24 08:21:16 -04:00
content Fix attachments & annotation box refresh bugs and add tests (#4031) 2024-05-15 06:45:01 -04:00
resource fx-compat: Update httpd.js from mozilla-central 1739f130 2022-06-17 20:24:43 -04:00
tests Mostly complete (read-only) compatibility with web library (#4270) 2024-06-12 05:45:48 -04:00
chrome.manifest fx115: Restore test runner 2024-03-30 00:58:53 -04:00
runtests.sh Fix --openssl-legacy-provider issue when tests need to build reader 2023-08-09 07:27:22 -04:00