see if this helps websql failure

This commit is contained in:
John Kleinschmidt
2021-04-22 13:54:26 -04:00
parent d4eb5efdb3
commit f771dfe0ab

View File

@@ -1290,13 +1290,18 @@ describe('chromium features', () => {
console.log('About to wait for w.webContents.executeJavaScript');
await w.webContents.executeJavaScript(`
new Promise((resolve, reject) => {
const webview = new WebView();
webview.setAttribute('src', '${origin}');
webview.setAttribute('webpreferences', 'enableWebSQL=0,contextIsolation=no');
webview.setAttribute('partition', '${sqlPartition}');
webview.setAttribute('nodeIntegration', 'on');
document.body.appendChild(webview);
webview.addEventListener('dom-ready', () => resolve());
try {
const webview = new WebView();
webview.addEventListener('dom-ready', () => resolve());
webview.setAttribute('src', '${origin}');
webview.setAttribute('webpreferences', 'enableWebSQL=0,contextIsolation=no');
webview.setAttribute('partition', '${sqlPartition}');
webview.setAttribute('nodeIntegration', 'on');
document.body.appendChild(webview);
} catch (ex) {
console.log('Error executing javascript', ex);
reject(ex)
}
});
`);
console.log('About to wait for second web-sql-response');