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 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
|
<!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.net.IframeIoTest');</script>
<title>Closure Unit Tests - goog.net.IframeIoTest</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.
-->
<style>
html, body {
width: 100%;
height: 100%;
overflow:hidden;
}
#log {
position: absolute;
top: 0px;
width: 50%;
right: 0%;
height: 100%;
overflow: auto;
}
p, input {
font-family: verdana, helvetica, arial, sans-serif;
font-size: small;
margin: 0px;
}
input {
font-family: verdana, helvetica, arial, sans-serif;
font-size: x-small;
}
i {
font-size: 85%;
}
</style>
</head><body><p>
<b>
IframeIo manual tests:
</b>
<br>
<br>
<i>
All operations should have no effect on history.
</i>
<br>
<br>
<i>
These tests require the ClosureTestServer
<br>
to be running with the IframeIoTestServlet.
<br>
</i>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</p>
<p>
<a href="javascript:simpleGet()">
Simple GET
</a>
<br>
<a href="javascript:simplePost()">
Simple POST
</a>
<br>
<a href="javascript:jsonEcho('GET')">
JSON echo (get)
</a>
<br>
<a href="javascript:jsonEcho('POST')">
JSON echo (post)
</a>
<br>
<a href="javascript:abort()">
Test abort
</a>
<br>
<br>
<br>
<br>
</p>
<form action="/iframeio/upload" enctype="multipart/form-data" id="uploadform" method="POST">
<p>
<a href="javascript:sendFromForm()">
Upload
</a>
<input name="userfile" type="file">
(big files should fail)
</p>
</form>
<p>
<a href="javascript:incremental()">
Incremental results
</a>
<br>
<a href="javascript:redirect1()">
Redirect (google.com)
</a>
<br>
<a href="javascript:redirect2()">
Redirect (/iframeio/ping)
</a>
<br>
<a href="javascript:localUrl1()">
Local request (Win path)
</a>
<br>
<a href="javascript:localUrl2()">
Local request (Linux path)
</a>
<br>
<a href="javascript:badUrl()">
Out of domain request
</a>
<br>
<a href="javascript:getServerTime(false)">
Test cache
</a>
(Date should stay the same for subsequent tests)
<br>
<a href="javascript:getServerTime(true)">
Test no-cache
</a>
<br>
<a href="javascript:errorGse404()">
GSE 404 Error
</a>
<br>
<a href="javascript:errorGfe()">
Simulated GFE Error
</a>
<br>
<a href="javascript:errorGmail()">
Simulated Gmail Server Error
</a>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</p>
<form action="/iframeio/jsonecho" id="testfrm" method="POST">
<p>
<b>
Comprehensive Form Post Test:
</b>
<br>
<input name="textinput" type="text" value="Default">
Text Input
<br>
Text Area
<br>
<textarea name="textarea">Default</textarea>
<br>
<input checked="checked" name="checkbox1" type="checkbox">
Checkbox, default on
<br>
<input name="checkbox2" type="checkbox">
Checkbox, default off
<br>
Radio:
<input checked="checked" name="radio" type="radio" value="Default">
Default,
<input name="radio" type="radio" value="Foo">
Foo,
<input name="radio" type="radio" value="Bar">
Bar
<br>
<select name="select">
<option>
One
</option>
<option>
Two
</option>
<option selected="selected">
Three (Default)
</option>
<option>
Four
</option>
<option>
Five
</option>
</select>
<br>
<select name="selectmultiple">
<option>
One
</option>
<option selected="selected">
Two (Default checked)
</option>
<option selected="selected">
Three (Default checked)
</option>
<option>
Four
</option>
</select>
<a href="javascript:postForm()">
Submit this form
</a>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</p>
</form>
<p>
<br>
<br>
TODO(pupius):
<br>
- Local timeout
<br>
<br>
<br>
</p>
<div id="log">
</div></body></html>
|