Import from 1.9a8 tarball
[mozilla-extra.git] / extensions / webservices / proxy / tests / wspproxytest.xhtml
bloba44cd2e85577ed313eb07d7b3830d81b99b96bf9
1 <?xml version="1.0"?>
2 <!-- ***** BEGIN LICENSE BLOCK *****
3 - Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 - The contents of this file are subject to the Mozilla Public License Version
6 - 1.1 (the "License"); you may not use this file except in compliance with
7 - the License. You may obtain a copy of the License at
8 - http://www.mozilla.org/MPL/
10 - Software distributed under the License is distributed on an "AS IS" basis,
11 - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 - for the specific language governing rights and limitations under the
13 - License.
15 - The Original Code is Mozilla Test Cases.
17 - The Initial Developer of the Original Code is
18 - Netscape Communications Corporation.
19 - Portions created by the Initial Developer are Copyright (C) 2001
20 - the Initial Developer. All Rights Reserved.
22 - Contributor(s):
24 - Alternatively, the contents of this file may be used under the terms of
25 - either the GNU General Public License Version 2 or later (the "GPL"), or
26 - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 - in which case the provisions of the GPL or the LGPL are applicable instead
28 - of those above. If you wish to allow use of your version of this file only
29 - under the terms of either the GPL or the LGPL, and not to allow others to
30 - use your version of this file under the terms of the MPL, indicate your
31 - decision by deleting the provisions above and replace them with the notice
32 - and other provisions required by the LGPL or the GPL. If you do not delete
33 - the provisions above, a recipient may use your version of this file under
34 - the terms of any one of the MPL, the GPL or the LGPL.
36 - ***** END LICENSE BLOCK ***** -->
37 <html xmlns="http://www.w3.org/1999/xhtml">
38 <head>
39 <title>Web Service Proxy Tests</title>
40 <style type="text/css">
41 .box {
42 display: box;
43 border: 1px solid black;
44 margin-bottom: 0.5em;
46 .boxheader {
47 font-weight: bold;
48 color: maroon;
50 pre {
51 margin-left: 2em;
53 </style>
54 <script type="text/javascript">
55 function WSPTest() {
56 this.wsptest = new WebServiceProxyTest();
59 WSPTest.prototype.onIsPrimeProxyTestComplete = function(str) {
60 document.getElementById("id3").firstChild.nodeValue = str;
63 WSPTest.prototype.startTest = function() {
64 try {
65 document.getElementById("id1").firstChild.nodeValue = "Testing...";
66 document.getElementById("id1").firstChild.nodeValue = this.wsptest.testComplexTypeWrapper();
68 catch (e) {
69 document.getElementById("id1").firstChild.nodeValue = "FAILED!";
72 try {
73 document.getElementById("id2").firstChild.nodeValue = "Testing...";
74 document.getElementById("id2").firstChild.nodeValue = this.wsptest.testPropertyBagWrapper();
76 catch (e) {
77 document.getElementById("id2").firstChild.nodeValue = "FAILED!";
80 try {
81 document.getElementById("id3").firstChild.nodeValue = "Testing...";
82 this.wsptest.testIsPrimeProxy(this);
84 catch (e) {
85 document.getElementById("id3").firstChild.nodeValue = "FAILED!";
89 var test = new WSPTest();
90 </script>
91 </head>
92 <body onload="test.startTest()">
93 <h1>Web Service Proxy Tests</h1>
95 <div class="box"><span class="boxheader">Complex Type Wrapper Test</span>
96 <pre id="id1">@@No result@@</pre>
97 </div>
98 <div class="box"><span class="boxheader">Property Bag Wrapper Test</span>
99 <pre id="id2">@@No result@@</pre>
100 </div>
101 <div class="box"><span class="boxheader">IsPrime Proxy Test</span>
102 <pre id="id3">@@No result@@</pre>
103 </div>
105 </body>
106 </html>