fx-compat: long tag fixer (#2649)

* Manual tag splitting from tag selector
* Only apply split to the tag in current library
* Preserve tag type
This commit is contained in:
Tom Najdek 2023-03-17 02:20:11 +01:00 committed by GitHub
parent b1595cdd1d
commit 13cc393840
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 406 additions and 251 deletions

View file

@ -1321,7 +1321,7 @@ describe("Zotero.Sync.Runner", function () {
}
});
waitForDialog(null, 'accept', 'chrome://zotero/content/longTagFixer.xul');
waitForDialog(null, 'accept', 'chrome://zotero/content/longTagFixer.xhtml');
yield runner.sync({ libraries: [Zotero.Libraries.userLibraryID] });
assert.isFalse(Zotero.Tags.getID(tag));
@ -1391,9 +1391,9 @@ describe("Zotero.Sync.Runner", function () {
}
});
waitForDialog(function (dialog) {
dialog.Zotero_Long_Tag_Fixer.switchMode(2);
}, 'accept', 'chrome://zotero/content/longTagFixer.xul');
waitForDialog(function (window) {
window.Zotero_Long_Tag_Fixer.switchMode(2);
}, 'accept', 'chrome://zotero/content/longTagFixer.xhtml');
yield runner.sync({ libraries: [Zotero.Libraries.userLibraryID] });
assert.isFalse(Zotero.Tags.getID(tag));