~ubuntu-branches/ubuntu/trusty/almond/trusty

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
<!DOCTYPE html>
<html>
<head>
    <title>almond: Simple Test</title>
    <script type="text/javascript" src="../doh/runner.js"></script>
    <script type="text/javascript" src="../doh/_browserRunner.js"></script>
    <script src="../../almond.js"></script>
    <script type="text/javascript" src="plugins.js"></script>
    <script type="text/javascript">
        requirejs.config({
                baseUrl: "./"
        });
        requirejs(['earth', 'prime/earth'],
        function   (earth,   primeEarth) {

            doh.register(
                "plugins",
                [
                    function plugins(t){
                        t.is("a", earth.getA().name);
                        t.is("c", earth.getC().name);
                        t.is("b", earth.getB().name);
                        t.is("aPrime", primeEarth.getA().name);
                        t.is("cPrime", primeEarth.getC().name);
                        t.is("bPrime", primeEarth.getB().name);
                     }
                ]
            );
            doh.run();
        });





    </script>
</head>
<body>
    <h1>almond: Simple Test</h1>
    <p>Check console for messages</p>
</body>
</html>