-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This embeds test.html and module_test.html into pytest-pyodide wheel. So we don't need to bundle them into pyodide distribution.
- Loading branch information
1 parent
54de3f9
commit 8c4a468
Showing
7 changed files
with
177 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- Bootstrap HTML for running the unit tests. --> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<script type="text/javascript"> | ||
window.logs = []; | ||
console.log = function (message) { | ||
window.logs.push(message); | ||
}; | ||
console.warn = function (message) { | ||
window.logs.push(message); | ||
}; | ||
console.info = function (message) { | ||
window.logs.push(message); | ||
}; | ||
console.error = function (message) { | ||
window.logs.push(message); | ||
}; | ||
</script> | ||
<script type="module"> | ||
import { loadPyodide } from "./pyodide.mjs"; | ||
window.loadPyodide = loadPyodide; | ||
</script> | ||
</head> | ||
<body></body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!-- Bootstrap HTML for running the unit tests. --> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>pyodide</title> | ||
<script type="text/javascript"> | ||
window.logs = []; | ||
console.log = function (message) { | ||
window.logs.push(message); | ||
}; | ||
console.warn = function (message) { | ||
window.logs.push(message); | ||
}; | ||
console.info = function (message) { | ||
window.logs.push(message); | ||
}; | ||
console.error = function (message) { | ||
window.logs.push(message); | ||
}; | ||
console.debug = function (message) { | ||
window.logs.push(message); | ||
}; | ||
</script> | ||
<script src="./pyodide.js"></script> | ||
</head> | ||
<body></body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters