mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-28 15:40:04 +00:00
test: fix scoping bug in frames test causing spurious failures
This commit is contained in:
@@ -120,9 +120,10 @@
|
|||||||
|
|
||||||
<script id=link_click>
|
<script id=link_click>
|
||||||
testing.async(async (restore) => {
|
testing.async(async (restore) => {
|
||||||
|
let f6;
|
||||||
await new Promise((resolve) => {
|
await new Promise((resolve) => {
|
||||||
let count = 0;
|
let count = 0;
|
||||||
let f6 = document.createElement('iframe');
|
f6 = document.createElement('iframe');
|
||||||
f6.id = 'f6';
|
f6.id = 'f6';
|
||||||
f6.addEventListener('load', () => {
|
f6.addEventListener('load', () => {
|
||||||
if (++count == 2) {
|
if (++count == 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user