48 lines
2.7 KiB
TypeScript
48 lines
2.7 KiB
TypeScript
--- electron/spec/api-clipboard.spec.ts.orig 2026-09-29 23:27:57 UTC
|
|
+++ electron/spec/api-clipboard.spec.ts
|
|
@@ -149,7 +149,7 @@ describe('clipboard module', { tags: ['serial'] }, ()
|
|
});
|
|
});
|
|
|
|
- ifdescribe(process.platform !== 'linux')('reading bookmarks via clipboard.read()', () => {
|
|
+ ifdescribe(process.platform !== 'linux' && process.platform !== 'freebsd')('reading bookmarks via clipboard.read()', () => {
|
|
it('returns title and url via the electron application/bookmark MIME type', async () => {
|
|
await clipboard.write([
|
|
new ClipboardItem({
|
|
@@ -176,7 +176,7 @@ describe('clipboard module', { tags: ['serial'] }, ()
|
|
});
|
|
|
|
describe('clipboard.read()', () => {
|
|
- ifit(process.platform !== 'linux')('does not crash when reading various custom clipboard types', async () => {
|
|
+ ifit(process.platform !== 'linux' && process.platform !== 'freebsd')('does not crash when reading various custom clipboard types', async () => {
|
|
const rawFormat = process.platform === 'darwin' ? 'NSFilenamesPboardType' : 'FileNameW';
|
|
// Raw platform formats with no standard MIME mapping are surfaced
|
|
// under the `electron application/osclipboard;format="..."` MIME.
|
|
@@ -235,7 +235,7 @@ describe('clipboard module', { tags: ['serial'] }, ()
|
|
const readImage = nativeImage.createFromBuffer(imageBuffer!);
|
|
expect(readImage.toDataURL()).to.equal(i.toDataURL());
|
|
|
|
- if (process.platform !== 'linux') {
|
|
+ if (process.platform !== 'linux' && process.platform !== 'freebsd') {
|
|
const readBookmarkValue = await readBookmark();
|
|
expect(readBookmarkValue).to.be.an('object');
|
|
if (process.platform !== 'win32') {
|
|
@@ -486,7 +486,7 @@ describe('clipboard module', { tags: ['serial'] }, ()
|
|
// but operates against a *separate* system buffer, so writes to the
|
|
// selection clipboard must not affect the regular system clipboard and
|
|
// vice-versa.
|
|
- ifdescribe(process.platform === 'linux')('clipboard.selection (Linux)', () => {
|
|
+ ifdescribe(process.platform === 'linux' || process.platform === 'freebsd')('clipboard.selection (Linux)', () => {
|
|
it('exposes a selection namespace mirroring the top-level surface', () => {
|
|
expect(clipboard.selection).to.be.an('object');
|
|
expect(clipboard.selection!.read).to.be.a('function');
|
|
@@ -543,7 +543,7 @@ describe('clipboard module', { tags: ['serial'] }, ()
|
|
});
|
|
});
|
|
|
|
- ifit(process.platform !== 'linux')('does not expose clipboard.selection off Linux', () => {
|
|
+ ifit(process.platform !== 'linux' && process.platform !== 'freebsd')('does not expose clipboard.selection off Linux', () => {
|
|
expect(clipboard.selection).to.be.undefined();
|
|
});
|
|
});
|