chore: cleanup spec-main/ambient.d.ts (#32363)
This commit is contained in:
parent
88ae6c0635
commit
7678a0aebb
5 changed files with 11 additions and 29 deletions
|
@ -585,7 +585,6 @@ describe('chromium features', () => {
|
|||
|
||||
it('should register for custom scheme', (done) => {
|
||||
const customSession = session.fromPartition('custom-scheme');
|
||||
const { serviceWorkerScheme } = global as any;
|
||||
customSession.protocol.registerFileProtocol(serviceWorkerScheme, (request, callback) => {
|
||||
let file = url.parse(request.url).pathname!;
|
||||
if (file[0] === '/' && process.platform === 'win32') file = file.slice(1);
|
||||
|
@ -1250,7 +1249,6 @@ describe('chromium features', () => {
|
|||
});
|
||||
|
||||
describe('enableWebSQL webpreference', () => {
|
||||
const standardScheme = (global as any).standardScheme;
|
||||
const origin = `${standardScheme}://fake-host`;
|
||||
const filePath = path.join(fixturesPath, 'pages', 'storage', 'web_sql.html');
|
||||
const sqlPartition = 'web-sql-preference-test';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue