fx115: replace text/unicode with text/plain in clipboard code (#3945)

This commit is contained in:
windingwind 2024-04-10 05:47:40 +08:00 committed by GitHub
parent 8b37a9889a
commit 49923780ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 11 deletions

View file

@ -156,7 +156,7 @@ describe("Zotero_File_Interface", function() {
assert.equal(str, '(<i>A</i>, 2016; <i>B</i>, 2016)');
// Plain text
str = getDataForFlavor('text/unicode');
str = getDataForFlavor('text/plain');
assert.equal(str, '(A, 2016; B, 2016)');
});
@ -173,7 +173,7 @@ describe("Zotero_File_Interface", function() {
assert.include(str, '<i>B</i>');
// Plain text
str = getDataForFlavor('text/unicode');
str = getDataForFlavor('text/plain');
assert.equal(str, 'A. (2016).\nB. (2016).\n');
});
@ -193,7 +193,7 @@ describe("Zotero_File_Interface", function() {
assert.equal(str, '(<i>A</i>, 2016; <i>B</i>, 2016)');
// Plain text
str = getDataForFlavor('text/unicode');
str = getDataForFlavor('text/plain');
assert.equal(str, '(<i>A</i>, 2016; <i>B</i>, 2016)');
});
@ -211,7 +211,7 @@ describe("Zotero_File_Interface", function() {
assert.include(str, '<i>B</i>');
// Plain text
str = getDataForFlavor('text/unicode');
str = getDataForFlavor('text/plain');
assert.include(str, 'line-height');
assert.include(str, '<i>A</i>');
assert.include(str, '<i>B</i>');