Skip to content

Commit

Permalink
chore: remove i18n JSON spec (#39391)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Aug 9, 2023
1 parent 2dee64f commit b428408
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 147 deletions.
132 changes: 0 additions & 132 deletions shell/common/extensions/api/i18n.json

This file was deleted.

15 changes: 0 additions & 15 deletions spec/extensions-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -702,21 +702,6 @@ describe('chrome extensions', () => {
expect(scope).equals(extension.url);
});

it('can run chrome extension APIs', async () => {
const customSession = session.fromPartition(`persist:${uuid.v4()}`);
const w = new BrowserWindow({ show: false, webPreferences: { session: customSession, nodeIntegration: true } });
await customSession.loadExtension(path.join(fixtures, 'extensions', 'mv3-service-worker'));

await w.loadURL(url);

w.webContents.executeJavaScript('window.postMessage(\'fetch-confirmation\', \'*\')');

const [, , responseString] = await emittedOnce(w.webContents, 'console-message');
const { message } = JSON.parse(responseString);

expect(message).to.equal('Hello from background.js');
});

describe('chrome.i18n', () => {
let customSession: Session;
let w = null as unknown as BrowserWindow;
Expand Down

0 comments on commit b428408

Please sign in to comment.