test: use custom partition for sw tests (#24999)
This commit is contained in:
parent
a1eceee48f
commit
ff24caf798
1 changed files with 5 additions and 2 deletions
|
@ -447,7 +447,8 @@ describe('chromium features', () => {
|
||||||
show: false,
|
show: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
nodeIntegrationInWorker: true
|
nodeIntegrationInWorker: true,
|
||||||
|
partition: 'sw-file-scheme-worker-spec'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -458,7 +459,9 @@ describe('chromium features', () => {
|
||||||
done(`unexpected error : ${message}`);
|
done(`unexpected error : ${message}`);
|
||||||
} else if (channel === 'response') {
|
} else if (channel === 'response') {
|
||||||
expect(message).to.equal('Hello from serviceWorker!');
|
expect(message).to.equal('Hello from serviceWorker!');
|
||||||
done();
|
session.fromPartition('sw-file-scheme-worker-spec').clearStorageData({
|
||||||
|
storages: ['serviceworkers']
|
||||||
|
}).then(() => done());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue