fix: html fullscreen transitions stacking (#32905)
* fix: html fullscreen transitions stacking * spec: move webview test to spec-main
This commit is contained in:
parent
f44ecb7f03
commit
16db5a112e
12 changed files with 184 additions and 61 deletions
|
@ -910,20 +910,6 @@ describe('<webview> tag', function () {
|
|||
});
|
||||
|
||||
describe('executeJavaScript', () => {
|
||||
it('should support user gesture', async () => {
|
||||
await loadWebView(webview, {
|
||||
src: `file://${fixtures}/pages/fullscreen.html`
|
||||
});
|
||||
|
||||
// Event handler has to be added before js execution.
|
||||
const waitForEnterHtmlFullScreen = waitForEvent(webview, 'enter-html-full-screen');
|
||||
|
||||
const jsScript = "document.querySelector('video').webkitRequestFullscreen()";
|
||||
webview.executeJavaScript(jsScript, true);
|
||||
|
||||
return waitForEnterHtmlFullScreen;
|
||||
});
|
||||
|
||||
it('can return the result of the executed script', async () => {
|
||||
await loadWebView(webview, {
|
||||
src: 'about:blank'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue