123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <!DOCTYPE HTML>
  2. <html lang="en-us">
  3. <head>
  4. <title>Reqwest tests</title>
  5. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  6. <link rel="stylesheet" href="/node_modules/sink-test/src/sink.css" type="text/css">
  7. <script src="/node_modules/valentine/valentine.js"></script>
  8. <script src="/node_modules/sink-test/src/sink.js"></script>
  9. <script src="/tests/ender.js"></script>
  10. <script src="/src/reqwest.js"></script>
  11. <script src="/src/ender.js"></script>
  12. <style type="text/css">
  13. #fixtures {
  14. position: absolute;
  15. top: -9999em;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <h1>Reqwest Tests</h1>
  21. <div id="fixtures">
  22. <form action="/foo" method="post">
  23. <input type="submit" value="Continue">
  24. <input type="text" name="foo" value="bar">
  25. <input type="hidden" name="bar" value="baz">
  26. <input type="checkbox" name="wha" checked value="1">
  27. <input type="checkbox" name="wha" value="2">
  28. <input type="checkbox" name="wha" checked value="3">
  29. <input type="radio" name="who" value="one">
  30. <input type="radio" name="who" checked value="tawoo">
  31. <input type="radio" name="who" value="three">
  32. <input type="text" name="$escapable name$" value="escapeme" />
  33. <select name="choices">
  34. <option>one</option>
  35. <option selected>two</option>
  36. <option>tres</option>
  37. </select>
  38. <textarea name="opinions">world peace is not real</textarea>
  39. </form>
  40. <form action="/baa" method="get">
  41. <textarea name="T3" rows="2" cols="15">?
  42. A B
  43. Z</textarea>
  44. <input type="hidden" name="H1" value="x" /> <!-- 0 -->
  45. <input type="hidden" name="H2" /> <!-- 1 -->
  46. <input type="password" name="PWD1" value="xyz" /> <!-- 2 -->
  47. <input type="password" name="PWD2" /> <!-- 3 -->
  48. <input type="text" name="T1" /> <!-- 4 -->
  49. <input type="text" name="T2" value="YES" readonly="readonly" /> <!-- 5 -->
  50. <input type="checkbox" name="C1" value="1" /> <!-- 6 -->
  51. <input type="checkbox" name="C2" /> <!-- 7 -->
  52. <input type="radio" name="R1" value="1" /> <!-- 8 -->
  53. <input type="radio" name="R1" value="" /> <!-- 9 -->
  54. <input type="text" name="My Name" value="me" /> <!-- 10 -->
  55. <input type="reset" name="rst" value="NO" /> <!-- 11 -->
  56. <input type="file" name="file" /> <!-- 12 -->
  57. <input type="submit" name="sub" value="NO" /> <!-- 13 -->
  58. <select name="S1"></select> <!-- 0 -->
  59. <select name="S2"> <!-- 1 -->
  60. <option value="abc">ABC</option>
  61. <option value="def">DEF</option>
  62. <option value="ghi">GHI</option>
  63. <option value="jkl">JKL</option>
  64. <option value="mno">MNO</option>
  65. <option value="pqr">PQR</option>
  66. <option value="disco stu">DISCO STU!</option>
  67. <option value="vwx">VWX</option>
  68. <option value="yz">YZ</option>
  69. <option value="">no no no!</option>
  70. </select>
  71. <select name="S3"> <!-- 2 -->
  72. <option>ABC</option>
  73. <option>DEF</option>
  74. <option>GHI</option>
  75. <option>JKL</option>
  76. <option>MNO</option>
  77. <option>PQR</option>
  78. <option>DISCO STU!</option>
  79. <option>VWX</option>
  80. <option>YZ</option>
  81. </select>
  82. <select name="S4" multiple="multiple" size="3"> <!-- 3 -->
  83. <option value="1">One</option>
  84. <option value="2">Two</option>
  85. <option value="3">Three</option>
  86. <option value="4">Four</option>
  87. <option value="5">Five</option>
  88. <option value="6">Six</option>
  89. <option>Seven</option>
  90. <option>Eight</option>
  91. <option>Disco Stu!</option>
  92. </select>
  93. <input type="text" name="D1" value="NO" disabled="disabled" /> <!-- 14 -->
  94. <input type="checkbox" name="D2" value="NO" checked="checked" disabled="disabled" /> <!-- 15 -->
  95. <input type="radio" name="D3" value="NO" checked="checked" disabled="disabled" /> <!-- 16 -->
  96. <select name="D4" disabled="disabled"><option selected="selected" value="NO">NO</option></select> <!-- 4 -->
  97. <select name="D5"><option selected="selected" value="NO" disabled="disabled">NO</option></select> <!-- 5 -->
  98. <select name="D4" disabled="disabled "multiple="multiple" size="3"><option selected="selected" value="NO">NO</option></select> <!-- 6 -->
  99. <select name="D5" multiple="multiple" size="3"><option selected="selected" value="NO" disabled="disabled">NO</option></select> <!-- 7 -->
  100. </form>
  101. </div>
  102. <ol id="tests"></ol>
  103. <script src="/tests/tests.js"></script>
  104. </body>
  105. </html>