Update editor, themes, menus, backgrounds, and release tooling
This commit is contained in:
@@ -90,6 +90,20 @@ app.whenReady().then(async () => {
|
||||
await engine.command('input', { tabId: first, input: { type: 'mouseUp', x: 50, y: 35, button: 'left' } });
|
||||
await engine.command('input', { tabId: first, input: { type: 'char', keyCode: 'x' } });
|
||||
await until(async () => await wc.executeJavaScript("document.querySelector('input').value") === 'x');
|
||||
assert.equal(await wc.executeJavaScript('document.hasFocus()'), true);
|
||||
await engine.command('focus', { tabId: first, focused: false });
|
||||
assert.equal(await wc.executeJavaScript('document.hasFocus()'), false);
|
||||
await engine.command('focus', { tabId: first, focused: true });
|
||||
assert.equal(await wc.executeJavaScript('document.hasFocus()'), true);
|
||||
wc.debugger.detach();
|
||||
await engine.command('focus', { tabId: first, focused: true });
|
||||
assert.equal(await wc.executeJavaScript('document.hasFocus()'), true);
|
||||
await engine.command('visible', { tabId: first, visible: false });
|
||||
assert.equal(await wc.executeJavaScript('document.hasFocus()'), false);
|
||||
await engine.command('visible', { tabId: first, visible: true });
|
||||
await engine.command('focus', { tabId: first, focused: true });
|
||||
await assert.rejects(engine.command('focus', { tabId: first, focused: 'true' }), /Invalid browser focus/);
|
||||
passed.push('offscreen focus supports the caret, blur, hidden tabs, and debugger reattachment');
|
||||
passed.push('offscreen frames and forwarded pointer and keyboard input work');
|
||||
await engine.command('insertText', { tabId: first, text: '日本語 🙂' });
|
||||
await until(async () => (await wc.executeJavaScript("document.querySelector('input').value")).endsWith('日本語 🙂'));
|
||||
|
||||
Reference in New Issue
Block a user