mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 17:18:52 -06:00
Implement HtmlCanvas; move some tests to commonTest
This commit is contained in:
21
web/test/canvas.html
Normal file
21
web/test/canvas.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Canvas Test</title>
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: "FontAwesome";
|
||||
src: url(FontAwesome.ttf) format("truetype");
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script src="../build/bundles/test.js"></script>
|
||||
<canvas id="canvas" width=500 height=400></canvas>
|
||||
<script>
|
||||
const canvas = document.getElementById('canvas');
|
||||
const test = new document.coreTest.org.isoron.platform.gui.HtmlCanvasTest(canvas);
|
||||
test.testDrawing();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user