Skip to content

Commit

Permalink
Added dual.html test for both pyodide and micropython
Browse files Browse the repository at this point in the history
  • Loading branch information
WebReflection committed Dec 12, 2023
1 parent 3f10d70 commit e521831
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions test/dual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script type="module" src="../core.js"></script>
</head>
<body>
<script type="micropython">
print("micropython")
</script>
<script type="pyodide">
print("pyodide")
</script>
<script type="micropython" worker>
print("micropython worker")
</script>
<script type="pyodide" worker>
print("pyodide worker")
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion test/worker-eval.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- this is the setup module script to expose long running Worker -->
<script type="module">
// grab utilities to bootstrap a Worker out of the blue
import { Hook, XWorker } from 'https://cdn.jsdelivr.net/npm/polyscript';
import { Hook, XWorker } from '../core.js';

const runtimeURL = URL.createObjectURL(new Blob(['']));

Expand Down

0 comments on commit e521831

Please sign in to comment.