mirror of
https://github.com/electron/electron.git
synced 2026-01-27 08:18:28 -05:00
test: use custom partition for sw tests (#24999)
This commit is contained in:
@@ -447,7 +447,8 @@ describe('chromium features', () => {
|
||||
show: false,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
nodeIntegrationInWorker: true
|
||||
nodeIntegrationInWorker: true,
|
||||
partition: 'sw-file-scheme-worker-spec'
|
||||
}
|
||||
});
|
||||
|
||||
@@ -458,7 +459,9 @@ describe('chromium features', () => {
|
||||
done(`unexpected error : ${message}`);
|
||||
} else if (channel === 'response') {
|
||||
expect(message).to.equal('Hello from serviceWorker!');
|
||||
done();
|
||||
session.fromPartition('sw-file-scheme-worker-spec').clearStorageData({
|
||||
storages: ['serviceworkers']
|
||||
}).then(() => done());
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user