Cleanup and improve the index.html for tests (#1558)

This commit is contained in:
Andrea Giammarchi
2023-06-22 21:37:11 +02:00
committed by GitHub
parent 3b7099cd3d
commit bf6470c046
2 changed files with 9 additions and 14 deletions

View File

@@ -28,9 +28,13 @@
<li><a href="./test/wasmoon.html">lua</a></li> <li><a href="./test/wasmoon.html">lua</a></li>
<li><a href="./test/async.html">async</a></li> <li><a href="./test/async.html">async</a></li>
<li><a href="./test/worker/">worker</a></li> <li><a href="./test/worker/">worker</a></li>
<li><a href="./test/worker/input.html">worker w/ input</a></li>
<li><a href="./test/order.html">execution order</a></li>
<li><a href="./test/plugins/">plugins</a></li> <li><a href="./test/plugins/">plugins</a></li>
<li> <li>
<a href="./test/plugins/py-script.html">plugins - PyScript</a> <a href="./test/plugins/py-script.html">
custom tags: PyScript
</a>
</li> </li>
</ul> </ul>
</body> </body>

View File

@@ -5,29 +5,19 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> <meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>python</title> <title>python</title>
<link rel="stylesheet" href="style.css" /> <link rel="stylesheet" href="style.css" />
<script type="importmap"> <script type="module" src="../core.js"></script>
{
"imports": {
"basic-devtools": "../node_modules/basic-devtools/esm/index.js",
"coincident/window": "../node_modules/coincident/window.js",
"@ungap/with-resolvers": "../node_modules/@ungap/with-resolvers/index.js",
"@ungap/structured-clone/json": "../node_modules/@ungap/structured-clone/esm/json.js"
}
}
</script>
<script type="module" src="../esm/index.js"></script>
</head> </head>
<body> <body>
<script <script
type="micropython" type="micropython"
src="http://localhost:7357/print-a.py" src="./print-a.py"
></script> ></script>
<script type="micropython"> <script type="micropython">
print('B') print('B')
</script> </script>
<script <script
type="micropython" type="micropython"
src="http://localhost:7357/print-a.py" src="./print-a.py"
></script> ></script>
<script type="micropython"> <script type="micropython">
print('C') print('C')
@@ -36,6 +26,7 @@
print('D') print('D')
</script> </script>
<pre> <pre>
# console should show this order too
A A
B B
A A