• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/lighttpd-1.4.39/external_file/js/davclient.js/dommer/
1<!-- 
2
3    run_tests.html - file for testing Dommer, serves also as an example
4    Copyright (C) 2004-2005 Guido Wesdorp
5    email johnny@debris.demon.nl
6
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2 of the License, or
10    (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20    
21-->
22<html>
23<head>
24<title>Unit tests for Dommer</title>
25<script type="text/javascript" src="../ecmaunit/ecmaunit.js"> </script>
26<script type="text/javascript" src="../jsbase/array.js"> </script>
27<script type="text/javascript" src="../jsbase/string.js"> </script>
28<script type="text/javascript" src="../minisax.js/minisax.js"> </script>
29<script type="text/javascript" src="dommer.js"> </script>
30<script type="text/javascript" src="tests.js"> </script>
31<script type="text/javascript">
32//<![CDATA[
33
34    function runTests() {
35        var body = document.getElementById('body');
36        var testsuite = new TestSuite(new HTMLReporter(body, true));
37        testsuite.registerTest(DOMTestCase);
38        if (navigator.appName.indexOf('Netscape') > -1 ||
39                navigator.appName.indexOf('Konqueror') > -1) {
40            // disable browser tests in IE, for they will fail...
41            testsuite.registerTest(BrowserDOMTestCase);
42        };
43        testsuite.runSuite();
44    };
45
46//]]>
47</script>
48</head>
49
50<body onload="runTests()" id="body">
51<div style="display:none" id="testdiv" ></div>
52</body>
53</html>
54