fix: default prop of location should be empty str

This commit is contained in:
Cheng Zhao 2018-12-04 17:00:13 +09:00
parent fc4e10b6c0
commit ca7dec2082
4 changed files with 8 additions and 7 deletions

View file

@ -3480,7 +3480,7 @@ describe('BrowserWindow module', () => {
iw.loadURL('about:blank')
iw.webContents.executeJavaScript(`
const opened = window.open()
openedLocation = opened.location
openedLocation = opened.location.href
opened.close()
window.postMessage({openedLocation}, '*')
`)