Skip to content

Commit 20f6fd9

Browse files
committed
added tests for images
1 parent 5c36f6a commit 20f6fd9

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

tests/images.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Image tests</title>
5+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6+
<link href="#" type="text/css" rel="stylesheet">
7+
8+
<script type="text/javascript" src="../external/jquery-1.6.2.min.js"></script>
9+
<script type="text/javascript" src="../build/html2canvas.js"></script>
10+
<script type="text/javascript" src="../build/jquery.plugin.html2canvas.js"></script>
11+
<script type="text/javascript">
12+
$(window).ready(function() {
13+
$('body').html2canvas();
14+
});
15+
</script>
16+
17+
<style>
18+
.small{
19+
font-size:14px;
20+
}
21+
22+
.medium{
23+
font-size:18px;
24+
}
25+
.large{
26+
font-size:24px;
27+
}
28+
div{
29+
float:left;
30+
}
31+
h2 {
32+
clear:both;
33+
}
34+
</style>
35+
36+
</head>
37+
<body>
38+
39+
<img src="image.jpg" />
40+
<img src="image.jpg" style="width:50px;height:400px;" />
41+
<img src="image.jpg" style="width:500px;" />
42+
<img src="image.jpg" style="width:500px;height:40px;" />
43+
44+
45+
<img src="image.jpg" style="padding:20px;border:5px solid black;" />
46+
47+
<img src="image.jpg" style="padding-bottom:20px;border-top:5px solid black;clear:both;" />
48+
49+
50+
<img src="image.jpg" style="padding-top:20px;border-top:5px solid black;clear:both;width:50px;" />
51+
<img src="image.jpg" style="padding-top:20px;border-top:5px solid black;clear:both;width:50px;height:25px;" />
52+
</body>
53+
</html>

0 commit comments

Comments
 (0)