Debian Codegraph @

closure-library/closure/goog/dom/forms_test.html

raw
1 <!DOCTYPE html><!-- DO NOT EDIT. This file auto-generated by generate_closure_unit_tests.js --><!--
2 Copyright 2017 The Closure Library Authors. All Rights Reserved.
3
4 Use of this source code is governed by the Apache License, Version 2.0.
5 See the COPYING file for details.
6 --><html><head><meta charset="UTF-8">
7
8 <script src="../base.js"></script>
9
10 <script>goog.require('goog.dom.formsTest');</script>
11 <title>Closure Unit Tests - goog.dom.formsTest</title><!--
12 Copyright 2017 The Closure Library Authors. All Rights Reserved.
13
14 Use of this source code is governed by the Apache License, Version 2.0.
15 See the COPYING file for details.
16 -->
17 </head><body><div id="testdiv1">
18 </div>
19 <form action="https://foo.bar/baz" id="testform1" onsubmit="return false">
20 <!-- text input with one value -->
21 <input id="in1" name="in1" value="foo">
22 <!-- text inputs with two values -->
23 <input id="in2" name="in2" value="bar">
24 <input id="in2" name="in2" value="baaz">
25 <!-- empty text input -->
26 <input id="in3" name="in3" value="">
27 <!-- password -->
28 <input id="pass" name="pass" type="password" value="bar">
29 <!-- textarea -->
30 <textarea id="textarea1" name="textarea">foo bar baz</textarea>
31 <!-- select single -->
32 <select id="select1" name="select1">
33 <option selected="" value="1">
34 one
35 </option>
36 <option value="2">
37 two
38 </option>
39 </select>
40 <!-- select multiple -->
41 <select id="select2" multiple="true" name="select2">
42 <option selected="" value="a">
43 A
44 </option>
45 <option value="b">
46 B
47 </option>
48 <option selected="" value="c">
49 C
50 </option>
51 </select>
52 <!-- select no value -->
53 <select id="select3" name="select3">
54 <option>
55 </option>
56 <option value="1">
57 one
58 </option>
59 <option value="2">
60 two
61 </option>
62 </select>
63 <!-- checkboxes -->
64 <fieldset id="testfieldset1">
65 <legend id="testlegend1">
66 Checkboxes
67 </legend>
68 <input checked="" id="checkbox1" name="checkbox1" type="checkbox">
69 <input id="checkbox2" name="checkbox2" type="checkbox">
70
71
72 </fieldset>
73 <!-- radio buttons -->
74 <fieldset>
75 <legend>
76 Radio Buttons
77 </legend>
78 <input checked="" id="radio1" name="radio" type="radio" value="X">
79 <input id="radio2" name="radio" type="radio" value="Y">
80
81
82 </fieldset>
83 <fieldset>
84 <legend>
85 Radio Buttons
86 </legend>
87 <input id="radio3" name="radio2" type="radio" value="X">
88 <input checked="" id="radio4" name="radio2" type="radio" value="Y">
89
90
91 </fieldset>
92 <!-- button -->
93 <button id="button" name="button" onclick="testSetValueSelectMultiple()" type="button" value="button">
94 button
95 </button>
96 <!-- submit -->
97 <input formaction="https://foo.xyz/baz" id="submit" name="submit" type="submit" value="submitv">
98 <!-- reset -->
99 <input id="reset" name="reset" type="reset" value="reset">
100 <!-- submit -->
101 <button formaction="https://foo.xyz/baz" id="submitb" name="submit" value="submitb">
102 Submit
103 </button>
104
105
106
107
108
109
110
111 </form>
112 <form id="testform2">
113 <input name="file" type="file">
114
115 </form>
116 <form id="testform3">
117 <!-- text input -->
118 <input id="in4" name="in4">
119 <!-- textarea -->
120 <textarea id="textarea2" name="textarea"></textarea>
121 <!-- select single -->
122 <select id="select4" name="select1">
123 <option value="1">
124 one
125 </option>
126 <option value="2">
127 two
128 </option>
129 </select>
130 <!-- select multiple -->
131 <select id="select5" multiple="true" name="select5">
132 <option value="a">
133 A
134 </option>
135 <option value="b">
136 B
137 </option>
138 <option value="c">
139 C
140 </option>
141 </select>
142 <!-- radio -->
143 <input id="radio3" name="radio3" type="radio" value="Z">
144 <!-- checkbox -->
145 <input id="checkbox2" name="checkbox2" type="checkbox">
146 <!-- select multiple no value -->
147 <select id="select6" multiple="true" name="select6">
148 <option value="a">
149 A
150 </option>
151 <option value="b">
152 B
153 </option>
154 </select>
155 <!-- select with empty value -->
156 <select id="select7" name="select7">
157 <option value="">
158 Empty
159 </option>
160 <option value="a">
161 A
162 </option>
163 <option value="b">
164 B
165 </option>
166 </select>
167
168
169
170 </form>
171 <form id="testform4">
172 <embed>
173
174 <embed type="foo/bar">
175
176 <object>
177 </object>
178 </form></body></html>