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