Skip to content

Commit 328ecd8

Browse files
committed
Form text value tests
1 parent 29b580d commit 328ecd8

1 file changed

Lines changed: 72 additions & 0 deletions

File tree

tests/forms.html

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<!--
2+
* @author Niklas von Hertzen <niklas at hertzen.com>
3+
* @created 16.7.2011
4+
* @website http://hertzen.com
5+
-->
6+
<!DOCTYPE html>
7+
<html>
8+
<head>
9+
<title>Form tests</title>
10+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
11+
<link href="#" type="text/css" rel="stylesheet">
12+
13+
<script type="text/javascript" src="../external/jquery-1.6.2.min.js"></script>
14+
<script type="text/javascript" src="../build/html2canvas.js"></script>
15+
<script type="text/javascript" src="../build/jquery.plugin.html2canvas.js"></script>
16+
<script type="text/javascript">
17+
$(window).ready(function() {
18+
$('body').html2canvas();
19+
});
20+
</script>
21+
<style>
22+
23+
</style>
24+
25+
</head>
26+
<body>
27+
<input type="text" value="textbox" />
28+
<input type="text" value="textbox" style="border:5px solid navy;" />
29+
<input type="text" value="textbox" style="border:5px solid navy;height:40px;" />
30+
31+
<input type="text" value="textbox" style="border:5px solid navy;height:40px;padding:10px;" />
32+
33+
<input type="text" value="textbox" style="padding:10px;" />
34+
<input type="text" value="textbox" style="padding:10px;text-align:right;" />
35+
<hr />
36+
<select>
37+
<option value="1">Value 1</option>
38+
<option value="2">Value 2</option>
39+
<option value="3">Value 3</option>
40+
</select>
41+
<select>
42+
43+
</select>
44+
<select>
45+
<option value="">2</option>
46+
</select>
47+
48+
49+
<select>
50+
<option value="1">Value 1</option>
51+
<option value="2" selected>Value 2 with something else</option>
52+
<option value="3">Value 3</option>
53+
</select>
54+
<hr />
55+
<input type="submit" value="Submit" />
56+
<input type="Button" value="Button" />
57+
<input type="Reset" value="Reset" />
58+
59+
60+
<input type="submit" value="Submit" style="width:200px;" />
61+
<input type="Button" value="Button" style="width:200px;height:50px;" />
62+
<input type="Reset" value="Reset" style="width:200px;height:50px;text-align:left;" />
63+
64+
<hr />
65+
66+
<textarea> </textarea>
67+
<textarea style="border-width:10px;"></textarea>
68+
69+
<textarea> text </textarea>
70+
<textarea style="border-width:10px;">text</textarea>
71+
</body>
72+
</html>

0 commit comments

Comments
 (0)