chromium/third_party/google-closure-library/closure/goog/net/iframeio_test.html

<!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>