chore: bump chromium to 93.0.4566.0 (main) (#29980)
* chore: bump chromium in DEPS to 93.0.4562.0 * chore: update patches * [base] Made Value::Take{Dict,List}() rvalue ref-qualified.2988105
* Revert "Reland "Roll src/buildtools/third_party/libc++/trunk/ 8fa879467..79a2e924d (426 commits)""2995482
This reverts commit 9691d6c265f010791c37d374248559969980ec65 and 797723ec838709ddeba0c104e30727ee0b7ac8ca * Pass gfx::Insets to GetHTComponentForFrame2984243
* chore: bump chromium in DEPS to 93.0.4563.0 * [Clipboard API] Clipboard Custom Formats implementation Part 2.2967649
* chore: update patches * chore: bump chromium in DEPS to 93.0.4564.0 * chore: bump chromium in DEPS to 93.0.4565.0 * chore: update patches * Prevent use of base::NoDestructor for trivially-destructible types2998672
* chore: update patches * fixup! [Clipboard API] Clipboard Custom Formats implementation Part 2. * chore: bump chromium in DEPS to 93.0.4566.0 * chore: update patches * chore: add missing header * ci: do not run clipboard tests on WOA Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com> Co-authored-by: deepak1556 <hop2deep@gmail.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
parent
7169734470
commit
2585e6d5fa
56 changed files with 194 additions and 218 deletions
|
@ -1,19 +1,14 @@
|
|||
const { expect } = require('chai');
|
||||
const path = require('path');
|
||||
const { Buffer } = require('buffer');
|
||||
const { ifdescribe } = require('./spec-helpers');
|
||||
|
||||
const { clipboard, nativeImage } = require('electron');
|
||||
|
||||
describe('clipboard module', () => {
|
||||
// FIXME(zcbenz): Clipboard tests are failing on WOA.
|
||||
ifdescribe(process.platform !== 'win32' || process.arch !== 'arm64')('clipboard module', () => {
|
||||
const fixtures = path.resolve(__dirname, 'fixtures');
|
||||
|
||||
// FIXME(zcbenz): Clipboard tests are failing on WOA.
|
||||
beforeEach(function () {
|
||||
if (process.platform === 'win32' && process.arch === 'arm64') {
|
||||
this.skip();
|
||||
}
|
||||
});
|
||||
|
||||
describe('clipboard.readImage()', () => {
|
||||
it('returns NativeImage instance', () => {
|
||||
const p = path.join(fixtures, 'assets', 'logo.png');
|
||||
|
@ -115,13 +110,13 @@ describe('clipboard module', () => {
|
|||
describe('clipboard.readBuffer(format)', () => {
|
||||
it('writes a Buffer for the specified format', function () {
|
||||
const buffer = Buffer.from('writeBuffer', 'utf8');
|
||||
clipboard.writeBuffer('public.utf8-plain-text', buffer);
|
||||
expect(buffer.equals(clipboard.readBuffer('public.utf8-plain-text'))).to.equal(true);
|
||||
clipboard.writeBuffer('public/utf8-plain-text', buffer);
|
||||
expect(buffer.equals(clipboard.readBuffer('public/utf8-plain-text'))).to.equal(true);
|
||||
});
|
||||
|
||||
it('throws an error when a non-Buffer is specified', () => {
|
||||
expect(() => {
|
||||
clipboard.writeBuffer('public.utf8-plain-text', 'hello');
|
||||
clipboard.writeBuffer('public/utf8-plain-text', 'hello');
|
||||
}).to.throw(/buffer must be a node Buffer/);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue