Abe Jellinek
79ef266f2f
Detect more EPUBs in viewAttachment() content type fixer ( #3433 )
2023-09-23 03:09:23 -04:00
Abe Jellinek
309e56df06
Add a test for 6740b264
2023-09-20 12:41:24 -04:00
Dan Stillman
24ae341045
Fix test breakage from f68818387
2023-09-18 16:47:55 -04:00
Abe Jellinek
8d825f641a
Fix segfault when hyphenating text in main process ( #3388 )
2023-09-14 02:48:50 -04:00
Dan Stillman
647e45c115
Use mixed-case DOI in retraction tests
...
https://forums.zotero.org/discussion/comment/442114/#Comment_442114 is
being fixed on the server, but test it here.
2023-09-03 18:51:50 -04:00
Dan Stillman
fb96cd595d
Add startHTTPServer() support function
...
Centralize httpd creation and add automatic retry to try to deal with
NS_ERROR_SOCKET_ADDRESS_IN_USE errors in CI.
2023-08-16 01:16:49 -04:00
Dan Stillman
9dd182e9ca
Collection tree selection fixes
...
Fixes various logic around what gets selected when collections and
searches are moved to or restored from the trash (which has never been
exposed) or when they're erased
2023-08-11 04:16:42 -04:00
Dan Stillman
69ba2310a2
Actually fix NS_ERROR_SOCKET_ADDRESS_IN_USE during tests
2023-08-09 08:05:30 -04:00
Dan Stillman
4ac3128b17
Use more ports for attachment tests
...
To try to avoid this stupid NS_ERROR_SOCKET_ADDRESS_IN_USE error
2023-08-07 17:36:19 -04:00
Dan Stillman
ae8ed58383
Disable PDF reader tests
2023-08-07 16:27:23 -04:00
Abe Jellinek
2ef560f7d8
Extract ISBNs and DOIs from EPUB content ( #64 )
...
And move EPUB functionality to class.
2023-08-07 16:07:55 -04:00
Abe Jellinek
cab0fa93e7
Extend Retrieve Metadata to support EPUBs ( #57 )
2023-08-07 16:07:55 -04:00
Abe Jellinek
ba1b1b0639
Add EPUB format to Zotero.MIME
2023-08-07 16:07:52 -04:00
Dan Stillman
9b0ce9558c
attachmentRenameFormatString
→ attachmentRenameTemplate
(#3249 )
2023-08-04 05:58:15 -04:00
Dan Stillman
02198b12fe
Fix dragging to My Publications
...
Also:
- Don't show file options if only linked files
- Don't set Rights field to "All Rights Reserved" if no files
2023-07-29 02:22:20 -04:00
Dan Stillman
be1ab236c8
Better cycling through httpd.js ports to avoid CI failures
2023-07-26 07:25:22 -04:00
Dan Stillman
a376ad8762
Don't close and reopen window during WebDAV tests
...
With any luck this will fix the crashing we've been getting in CI.
2023-07-26 07:25:22 -04:00
Dan Stillman
630c6d0d97
Fix tags not being saved in item tags box when pressing Enter
...
SyntaxError: Element.querySelector: '[ztabindex=1]' is not a valid selector
https://forums.zotero.org/discussion/106405/zotero-7-changes-to-item-tag-do-not-persist
2023-07-25 05:51:41 -04:00
Dan Stillman
ed2cae9236
Adjust attachment-title handling on Rename File from Parent Metadata
...
Don't change the attachment title on a manual rename from metadata if it
doesn't match the current filename, with or without the extension
Closes #3220
2023-07-25 01:48:23 -04:00
Abe Jellinek
676f820f87
Strip bidi control characters in filenames and elsewhere ( #3208 )
...
Passing unformatted = true to Item#getField() now returns a bidi control
character-less result, and we use that in Reader#updateTitle() and
getFileBaseNameFromItem() to prevent bidi control characters from showing up in
filenames and window titles (the former everywhere, the latter on Windows only).
We also strip bidi control characters in getValidFileName() to be extra safe.
2023-07-22 03:30:28 -04:00
Tom Najdek
0ba766f2e0
Customizable renaming rules #1413 ( #2297 )
2023-07-20 06:50:34 -04:00
Dan Stillman
d7449b4d78
Fix merging of group attachments with annotations created by another user
...
https://forums.zotero.org/discussion/106197/merge-in-group-library-fails-despite-having-edit-permissions
2023-07-13 19:58:47 -04:00
Dan Stillman
21c05bb8d7
Cycle through httpd.js ports to prevent CI failures in ZoteroPane tests
...
And remove unused XHR mock
2023-07-06 19:22:05 -04:00
Dan Stillman
14f7d3acad
Cycle through httpd ports to prevent CI failures
...
We didn't seem to be doing this anymore, even though we had a comment
for it, and some tests were failing with NS_ERROR_SOCKET_ADDRESS_IN_USE.
2023-06-19 06:54:19 -04:00
Abe Jellinek
2639981dda
Block remote content when indexing HTML file ( #3157 )
2023-06-12 23:43:18 -04:00
Dan Stillman
117dbe1fe0
Clear Zotero.skipLoading after data directory tests
...
This was causing a startup error in the re-enabled debug output tests,
which don't reset app state.
2023-05-25 05:45:53 -04:00
Abe Jellinek
794b27c1ad
Test debug output logging again
...
Now that we run tests in Zotero with application menus.
2023-05-24 20:59:29 +03:00
Abe Jellinek
caa1036da2
Remote translation: Don't use wantGlobalProperties
...
Not necessary - just use the properties we inherit from contentWindow. This
fixes the DOMParser constructor, which fails if called without a window context
from a non-system principal.
https://forums.zotero.org/discussion/105163/zotero-7-doi-translator-broken-in-scaffold
2023-05-23 22:30:24 +03:00
Dan Stillman
55fe6f33f5
fx-compat: Fix XMLSerializer calls
...
https://forums.zotero.org/discussion/105118/zotero-7-error-upon-exporting-in-mods-format
2023-05-22 01:34:41 -04:00
Abe Jellinek
fa31956d28
fx-compat: Fix feed button appearance/overflow behavior ( #3114 )
2023-05-09 16:38:33 -04:00
Dan Stillman
f21ca49d83
Fix sync engine tests after 00703c0b8
2023-05-05 06:38:00 -04:00
Dan Stillman
296c0142f2
fx-compat: OS.File.read()
→ IOUtils.read()
in getContentsAsync()
...
https://firefox-source-docs.mozilla.org/dom/ioutils_migration.html
This also fixes a bug when `getContentsAsync()` is passed an
`nsIInputStream` or `nsIChannel` where raw bytes were returned instead
of a string. Not sure if we're doing that anywhere. If we are, this
would presumably break that code, but the function is supposed to return
a decoded string.
2023-04-30 05:23:41 -04:00
Dan Stillman
0858960d33
Better logging for request count mismatches in Find Available PDF tests
2023-04-29 17:50:49 -04:00
Dan Stillman
a497f501e9
Update pdf-worker and update full-text test
...
Strip '\f' at end of extracted text and ignore '\n' in the middle of
text from the test PDF
2023-04-29 04:56:28 -04:00
Dan Stillman
26dade03f2
Z7: Fix ZoteroPane tests
2023-04-29 04:27:48 -04:00
Dan Stillman
95455dbd83
Fix tagsbox tests after shadow root removal
2023-04-29 03:15:15 -04:00
Dan Stillman
4a77bc4be0
fx-compat: Update conflict resolution merge window ( #3090 )
...
Tests passing, but not yet styled properly
2023-04-29 03:13:53 -04:00
Dan Stillman
dbefdaac2c
Update snapshot tests for new SingleFile markup
2023-04-28 02:18:52 -04:00
Dan Stillman
46d0ce3cbf
Don't load example.com in /saveSnapshot
tests
2023-04-28 02:18:19 -04:00
Dan Stillman
fa143f1ea4
Z7: Update retractions tests
2023-04-28 01:54:00 -04:00
Dan Stillman
ed224dce34
Z7: Update relatedbox tests
2023-04-28 01:54:00 -04:00
Dan Stillman
82b4943d13
Z7: Update note editor tests
2023-04-28 01:54:00 -04:00
Dan Stillman
2c995c913e
Z7: Update items test for andJoiner
delimiters
2023-04-28 01:54:00 -04:00
Dan Stillman
b6522ae3f5
Z7: Update item pane teets
2023-04-28 01:54:00 -04:00
Dan Stillman
43ba4c3620
Don't check for .zotero-ft-info in test
...
No longer created
2023-04-27 03:48:49 -04:00
Dan Stillman
f95a6d0f0a
Rename Zotero.Fulltext
tests to Zotero.FullText
2023-04-27 03:48:01 -04:00
Dan Stillman
3ba78e28bb
Update connectorTypeSchemaData and test data for Dataset Number removal
2023-04-27 03:44:25 -04:00
Dan Stillman
2e081ce8d2
Fix RemoteTranslate test after b222bbcccb
...
And remove duplicate test
2023-04-27 01:05:02 -04:00
Dan Stillman
947fa2b558
Ignore numeric values for Type:
lines in Extra
...
https://forums.zotero.org/discussion/comment/433334/#Comment_433334
2023-04-26 04:55:43 -04:00
Dan Stillman
4a30dd2e4f
Fix potential sync error after Replace Online Library in group
...
https://forums.zotero.org/discussion/104431/syncing-problem
Replace Online Library can upload annotations created by others in a
group library, so if the upload resulted in a local write, "Cannot edit
item in library" was thrown, since annotations by others aren't
writable. This should've only been a problem if the uploaded data was
actually modified by the server, but we were also checking whether
objects were editable before checking if they had actually changed, so
it would happen for any upload of another person's annotation.
This fixes the order of checks when saving objects and makes an
edit-check exception for saving uploaded data for group annotations.
2023-04-21 06:51:25 -04:00