mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
fix: reject contentTracing.stopRecording on failure (#26608)
This commit is contained in:
@@ -119,6 +119,10 @@ ifdescribe(!(process.platform !== 'win32' && ['arm', 'arm64'].includes(process.a
|
||||
const resultFilePath = await record(/* options */ {}, /* outputFilePath */ undefined);
|
||||
expect(resultFilePath).to.be.a('string').that.is.not.empty('result path');
|
||||
});
|
||||
|
||||
it('rejects if no trace is happening', async () => {
|
||||
await expect(contentTracing.stopRecording()).to.be.rejected();
|
||||
});
|
||||
});
|
||||
|
||||
describe('captured events', () => {
|
||||
|
||||
Reference in New Issue
Block a user