From 859461ddc186b8c39d05715f6ceb7f8d61e66318 Mon Sep 17 00:00:00 2001 From: MoyuScript <i@moyu.moe> Date: Fri, 29 Jul 2011 22:56:33 +0300 Subject: [PATCH] Form text value tests --- tests/forms.html | 72 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 tests/forms.html diff --git a/tests/forms.html b/tests/forms.html new file mode 100644 index 0000000..2963eb4 --- /dev/null +++ b/tests/forms.html @@ -0,0 +1,72 @@ +<!-- +* @author Niklas von Hertzen <niklas at hertzen.com> +* @created 16.7.2011 +* @website http://hertzen.com +--> +<!DOCTYPE html> +<html> + <head> + <title>Form tests</title> + <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"> + $(window).ready(function() { + $('body').html2canvas(); + }); + </script> + <style> + + </style> + + </head> + <body> + <input type="text" value="textbox" /> + <input type="text" value="textbox" style="border:5px solid navy;" /> + <input type="text" value="textbox" style="border:5px solid navy;height:40px;" /> + + <input type="text" value="textbox" style="border:5px solid navy;height:40px;padding:10px;" /> + + <input type="text" value="textbox" style="padding:10px;" /> + <input type="text" value="textbox" style="padding:10px;text-align:right;" /> + <hr /> + <select> + <option value="1">Value 1</option> + <option value="2">Value 2</option> + <option value="3">Value 3</option> + </select> + <select> + + </select> + <select> + <option value="">2</option> + </select> + + + <select> + <option value="1">Value 1</option> + <option value="2" selected>Value 2 with something else</option> + <option value="3">Value 3</option> + </select> + <hr /> + <input type="submit" value="Submit" /> + <input type="Button" value="Button" /> + <input type="Reset" value="Reset" /> + + + <input type="submit" value="Submit" style="width:200px;" /> + <input type="Button" value="Button" style="width:200px;height:50px;" /> + <input type="Reset" value="Reset" style="width:200px;height:50px;text-align:left;" /> + + <hr /> + + <textarea> </textarea> + <textarea style="border-width:10px;"></textarea> + + <textarea> text </textarea> + <textarea style="border-width:10px;">text</textarea> + </body> +</html>