forked from inexorabletash/jslogo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.html
27 lines (25 loc) · 1.26 KB
/
tests.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<title>Logo Unit Tests</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.1.1.css">
<script src="https://code.jquery.com/qunit/qunit-2.1.1.js"></script>
<div id=qunit></div>
<div id=qunit-fixture>
<div id="display" style="width: 200px; height: 200px; position: relative;">
<canvas id="sandbox" width="300" height="300"
style="position: absolute; border: solid 1px black; z-index: 0;"></canvas>
<canvas id="turtle" width="300" height="300"
style="position: absolute; border: solid 1px black; z-index: 1;"></canvas>
<div id="overlay"
style="position: absolute; z-index: 2;
width: 280px; height: 280px; padding: 10px; margin: 0;
background-color: transparent; overflow: hidden;
white-space: pre-wrap; font-family: Monospace;"></div>
</div>
</div>
<script src="https://cdn.rawgit.com/inexorabletash/polyfill/v0.1.29/polyfill.min.js"></script>
<script src="logo.js"></script> <!-- Logo interpreter -->
<script src="floodfill.js"></script> <!-- Flood fill for canvas -->
<script src="turtle.js"></script> <!-- Canvas turtle -->
<script src="tests.js"></script> <!-- Unit tests -->