File: client.html

package info (click to toggle)
node-configurable-http-proxy 4.5.3%2B~cs15.2.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,580 kB
  • sloc: javascript: 10,340; sh: 27; makefile: 22
file content (25 lines) | stat: -rw-r--r-- 705 bytes parent folder | download
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
<!doctype html>
<html>
<head>
    <title>simple browser test</title>
    <script src="../dist/rbtree.js"></script>
    <script src="../dist/bintree.js"></script>
    <script>
        function test(tree) {
            var tree = new tree(function(a,b) { return a - b; });
            tree.insert(1);
            tree.insert(2);
            tree.insert(3);
            tree.remove(2);
            tree.each(function(d) {
                console.log(d);
            });
        }
        test(RBTree);
        test(BinTree);
    </script>
</head>
<body>
    This test just makes sure the script loads and <em>something</em> works. More comprehensive tests are located in the /test directory.
</body>
</html>