Debian Codegraph @

closure-library/closure/goog/net/iframeio_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.net.IframeIoTest');</script>
11 <title>Closure Unit Tests - goog.net.IframeIoTest</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 <style>
18 html, body {
19 width: 100%;
20 height: 100%;
21 overflow:hidden;
22 }
23
24 #log {
25 position: absolute;
26 top: 0px;
27 width: 50%;
28 right: 0%;
29 height: 100%;
30 overflow: auto;
31 }
32
33 p, input {
34 font-family: verdana, helvetica, arial, sans-serif;
35 font-size: small;
36 margin: 0px;
37 }
38
39 input {
40 font-family: verdana, helvetica, arial, sans-serif;
41 font-size: x-small;
42 }
43
44 i {
45 font-size: 85%;
46 }
47 </style>
48 </head><body><p>
49 <b>
50 IframeIo manual tests:
51 </b>
52 <br>
53 <br>
54 <i>
55 All operations should have no effect on history.
56 </i>
57 <br>
58 <br>
59 <i>
60 These tests require the ClosureTestServer
61 <br>
62 to be running with the IframeIoTestServlet.
63 <br>
64 </i>
65 <br>
66 <br>
67 <br>
68 <br>
69 <br>
70 <br>
71 <br>
72 </p>
73 <p>
74 <a href="javascript:simpleGet()">
75 Simple GET
76 </a>
77 <br>
78 <a href="javascript:simplePost()">
79 Simple POST
80 </a>
81 <br>
82 <a href="javascript:jsonEcho('GET')">
83 JSON echo (get)
84 </a>
85 <br>
86 <a href="javascript:jsonEcho('POST')">
87 JSON echo (post)
88 </a>
89 <br>
90 <a href="javascript:abort()">
91 Test abort
92 </a>
93 <br>
94 <br>
95 <br>
96 <br>
97 </p>
98 <form action="/iframeio/upload" enctype="multipart/form-data" id="uploadform" method="POST">
99 <p>
100 <a href="javascript:sendFromForm()">
101 Upload
102 </a>
103 <input name="userfile" type="file">
104 (big files should fail)
105
106 </p>
107 </form>
108 <p>
109 <a href="javascript:incremental()">
110 Incremental results
111 </a>
112 <br>
113 <a href="javascript:redirect1()">
114 Redirect (google.com)
115 </a>
116 <br>
117 <a href="javascript:redirect2()">
118 Redirect (/iframeio/ping)
119 </a>
120 <br>
121 <a href="javascript:localUrl1()">
122 Local request (Win path)
123 </a>
124 <br>
125 <a href="javascript:localUrl2()">
126 Local request (Linux path)
127 </a>
128 <br>
129 <a href="javascript:badUrl()">
130 Out of domain request
131 </a>
132 <br>
133 <a href="javascript:getServerTime(false)">
134 Test cache
135 </a>
136 (Date should stay the same for subsequent tests)
137 <br>
138 <a href="javascript:getServerTime(true)">
139 Test no-cache
140 </a>
141 <br>
142 <a href="javascript:errorGse404()">
143 GSE 404 Error
144 </a>
145 <br>
146 <a href="javascript:errorGfe()">
147 Simulated GFE Error
148 </a>
149 <br>
150 <a href="javascript:errorGmail()">
151 Simulated Gmail Server Error
152 </a>
153 <br>
154 <br>
155 <br>
156 <br>
157 <br>
158 <br>
159 <br>
160 <br>
161 <br>
162 <br>
163 <br>
164 <br>
165 <br>
166 <br>
167 </p>
168 <form action="/iframeio/jsonecho" id="testfrm" method="POST">
169 <p>
170 <b>
171 Comprehensive Form Post Test:
172 </b>
173 <br>
174 <input name="textinput" type="text" value="Default">
175 Text Input
176 <br>
177 Text Area
178 <br>
179 <textarea name="textarea">Default</textarea>
180 <br>
181 <input checked="checked" name="checkbox1" type="checkbox">
182 Checkbox, default on
183 <br>
184 <input name="checkbox2" type="checkbox">
185 Checkbox, default off
186 <br>
187 Radio:
188 <input checked="checked" name="radio" type="radio" value="Default">
189 Default,
190 <input name="radio" type="radio" value="Foo">
191 Foo,
192 <input name="radio" type="radio" value="Bar">
193 Bar
194 <br>
195 <select name="select">
196 <option>
197 One
198 </option>
199 <option>
200 Two
201 </option>
202 <option selected="selected">
203 Three (Default)
204 </option>
205 <option>
206 Four
207 </option>
208 <option>
209 Five
210 </option>
211 </select>
212 <br>
213 <select name="selectmultiple">
214 <option>
215 One
216 </option>
217 <option selected="selected">
218 Two (Default checked)
219 </option>
220 <option selected="selected">
221 Three (Default checked)
222 </option>
223 <option>
224 Four
225 </option>
226 </select>
227 <a href="javascript:postForm()">
228 Submit this form
229 </a>
230 <br>
231 <br>
232
233
234
235 <br>
236
237 <br>
238
239 <br>
240 <br>
241 <br>
242
243 <br>
244 </p>
245 </form>
246 <p>
247 <br>
248 <br>
249 TODO(pupius):
250 <br>
251 - Local timeout
252 <br>
253 <br>
254 <br>
255 </p>
256 <div id="log">
257 </div></body></html>