diff --git a/pyscript.core/tests/index.html b/pyscript.core/tests/index.html index dc3e210f..074ffd08 100644 --- a/pyscript.core/tests/index.html +++ b/pyscript.core/tests/index.html @@ -14,5 +14,5 @@ a:hover { opacity: 1; } - + diff --git a/pyscript.core/tests/integration.spec.js b/pyscript.core/tests/integration.spec.js index b062777e..5dbaf832 100644 --- a/pyscript.core/tests/integration.spec.js +++ b/pyscript.core/tests/integration.spec.js @@ -97,3 +97,8 @@ test('MicroPython Editor setup error', async ({ page }) => { await page.goto('http://localhost:8080/tests/js-integration/issue-2093/index.html'); await page.waitForSelector('html.errored'); }); + +test('MicroPython async @when listener', async ({ page }) => { + await page.goto('http://localhost:8080/tests/js-integration/async-listener.html'); + await page.waitForSelector('html.ok'); +}); diff --git a/pyscript.core/tests/js-integration/async-listener.html b/pyscript.core/tests/js-integration/async-listener.html new file mode 100644 index 00000000..c774d4a2 --- /dev/null +++ b/pyscript.core/tests/js-integration/async-listener.html @@ -0,0 +1,24 @@ + + + + + + + + + + + +

+
+