summaryrefslogtreecommitdiff
path: root/alarm/node_modules/node-forge/tests/xhr.html
blob: aaa721c53e2552add0b622fec7aa0bb263d51e58 (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
   <head>
      <title>Forge XmlHttpRequest Test</title>
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
      <script type="text/javascript" src="forge/debug.js"></script>
      <script type="text/javascript" src="forge/util.js"></script>
      <script type="text/javascript" src="forge/log.js"></script>
      <script type="text/javascript" src="forge/task.js"></script>
      <script type="text/javascript" src="forge/socket.js"></script>
      <script type="text/javascript" src="forge/md5.js"></script>
      <script type="text/javascript" src="forge/sha1.js"></script>
      <script type="text/javascript" src="forge/hmac.js"></script>
      <script type="text/javascript" src="forge/aes.js"></script>
      <script type="text/javascript" src="forge/pem.js"></script>
      <script type="text/javascript" src="forge/asn1.js"></script>
      <script type="text/javascript" src="forge/jsbn.js"></script>
      <script type="text/javascript" src="forge/prng.js"></script>
      <script type="text/javascript" src="forge/random.js"></script>
      <script type="text/javascript" src="forge/oids.js"></script>
      <script type="text/javascript" src="forge/rsa.js"></script>
      <script type="text/javascript" src="forge/pbe.js"></script>
      <script type="text/javascript" src="forge/x509.js"></script>
      <script type="text/javascript" src="forge/pki.js"></script>
      <script type="text/javascript" src="forge/tls.js"></script>
      <script type="text/javascript" src="forge/aesCipherSuites.js"></script>
      <script type="text/javascript" src="forge/tlssocket.js"></script>
      <script type="text/javascript" src="forge/http.js"></script>
      <script type="text/javascript" src="forge/xhr.js"></script>
      <script type="text/javascript" src="xhr.js"></script>
      
      <link type="text/css" rel="stylesheet" media="all" href="screen.css" />
      <style type="text/css">
         .ready { color: inherit; background: inherit; }
         .testing { color: black; background: yellow; }
         .pass{ color: white; background: green; }
         .fail{ color: white; background: red; }
      </style>
   </head>
<body>
<div class="nav"><a href="index.html">Forge Tests</a> / XHR</div>

<div class="header">
   <h1>XmlHttpRequest Tests</h1>
</div>

<div class="content">

<!-- div used to hold the flash socket pool implemenation -->
<div id="socketPool">
   <p>Could not load the flash SocketPool.</p>
</div>

<fieldset class="section">
   <ul>
     <li>Use the controls below to test the XHR wrapper.</li>
   </ul>
</fieldset>

<fieldset class="section">
<legend>Control</legend>
   <button id="start">Start</button>
   <button id="reset">Reset</button>
   <br/>
   <input id="scroll" type="checkbox" checked="checked" />Scroll Tests
   <br/>
   <button id="stress">Stress</button>
</fieldset>

<fieldset class="section">
<legend>Progress</legend>
Status: <span id="status">?</span><br/>
Pass: <span id="pass">?</span>/<span id="total">?</span><br/>
Fail: <span id="fail">?</span>
</fieldset>

<fieldset class="section">
<legend>Tests</legend>
<div id="tests"></div>
</fieldset>

</div>
</body>
</html>