mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
Cleanup and improve the index.html for tests (#1558)
This commit is contained in:
committed by
GitHub
parent
3b7099cd3d
commit
bf6470c046
@@ -28,9 +28,13 @@
|
||||
<li><a href="./test/wasmoon.html">lua</a></li>
|
||||
<li><a href="./test/async.html">async</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/py-script.html">plugins - PyScript</a>
|
||||
<a href="./test/plugins/py-script.html">
|
||||
custom tags: PyScript
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</body>
|
||||
|
||||
@@ -5,29 +5,19 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
<title>python</title>
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
<script type="importmap">
|
||||
{
|
||||
"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>
|
||||
<script type="module" src="../core.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script
|
||||
type="micropython"
|
||||
src="http://localhost:7357/print-a.py"
|
||||
src="./print-a.py"
|
||||
></script>
|
||||
<script type="micropython">
|
||||
print('B')
|
||||
</script>
|
||||
<script
|
||||
type="micropython"
|
||||
src="http://localhost:7357/print-a.py"
|
||||
src="./print-a.py"
|
||||
></script>
|
||||
<script type="micropython">
|
||||
print('C')
|
||||
@@ -36,6 +26,7 @@
|
||||
print('D')
|
||||
</script>
|
||||
<pre>
|
||||
# console should show this order too
|
||||
A
|
||||
B
|
||||
A
|
||||
|
||||
Reference in New Issue
Block a user