refactor: use std::string instead of base::string16 for IPC channel names (#14286)
This commit is contained in:
parent
605a4570c1
commit
e6e3ccfc50
12 changed files with 45 additions and 24 deletions
|
@ -154,6 +154,21 @@ describe('ipc renderer module', () => {
|
|||
|
||||
contents.loadURL(`file://${path.join(fixtures, 'pages', 'ping-pong.html')}`)
|
||||
})
|
||||
|
||||
it('sends message to WebContents (channel has special chars)', done => {
|
||||
const webContentsId = remote.getCurrentWebContents().id
|
||||
|
||||
ipcRenderer.once('pong-æøåü', (event, id) => {
|
||||
expect(webContentsId).to.equal(id)
|
||||
done()
|
||||
})
|
||||
|
||||
contents.once('did-finish-load', () => {
|
||||
ipcRenderer.sendTo(contents.id, 'ping-æøåü', webContentsId)
|
||||
})
|
||||
|
||||
contents.loadURL(`file://${path.join(fixtures, 'pages', 'ping-pong.html')}`)
|
||||
})
|
||||
})
|
||||
|
||||
describe('remote listeners', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue