Files
pyscript/pyscript.core/tests/manual/all-done.html
Andrea Giammarchi 9f46234f71 Fix #2114 - Cleanup the test folder + automation (#2143)
* Fix #2114 - Cleanup the test folder + automation
* Merged both test and tests into a single folder
2024-08-08 17:08:59 +02:00

40 lines
750 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../dist/core.css">
<script type="module">
import '../../dist/core.js';
document.body.append('loading ...', document.createElement('br'));
addEventListener(
'py:all-done',
() => {
document.body.append('all executed');
},
{ once: true }
);
</script>
</head>
<body>
<script type="py">
print(1)
</script>
<py-script>
print(2)
</py-script>
<py-script async>
print(3)
</py-script>
<script type="py" worker>
print(4)
</script>
<py-script async worker>
print(5)
</py-script>
</body>
</html>