convert all tests to use tests/test.js

all tests now run from the source files directly instead of the built
verion in build/.
This commit is contained in:
MoyuScript
2011-12-11 18:12:20 +01:00
parent 15eefadbf9
commit a98c229bf6
16 changed files with 30 additions and 180 deletions

View File

@ -5,11 +5,9 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="#" type="text/css" rel="stylesheet">
<script type="text/javascript" src="../external/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="../build/html2canvas.js"></script>
<script type="text/javascript" src="../build/jquery.plugin.html2canvas.js"></script>
<script type="text/javascript" src="test.js"></script>
<script type="text/javascript">
$(window).ready(function() {
function setUp() {
var ctx = $('#testcanvas')[0].getContext('2d');
ctx.fillStyle = "rgb(200,0,0)";
@ -17,9 +15,7 @@
ctx.fillStyle = "rgba(0, 0, 200, 0.5)";
ctx.fillRect (30, 30, 55, 50);
$('body').html2canvas();
});
};
</script>
<style>