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

« back to all changes in this revision

Viewing changes to tests/plugins/plugins.html

  • Committer: Package Import Robot
  • Author(s): Georges Khaznadar
  • Date: 2013-11-02 16:28:01 UTC
  • Revision ID: package-import@ubuntu.com-20131102162801-c33r5wt6efwq52n7
Tags: upstream-0.2.6
ImportĀ upstreamĀ versionĀ 0.2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html>
 
2
<html>
 
3
<head>
 
4
    <title>almond: Simple Test</title>
 
5
    <script type="text/javascript" src="../doh/runner.js"></script>
 
6
    <script type="text/javascript" src="../doh/_browserRunner.js"></script>
 
7
    <script src="../../almond.js"></script>
 
8
    <script type="text/javascript" src="plugins.js"></script>
 
9
    <script type="text/javascript">
 
10
        requirejs.config({
 
11
                baseUrl: "./"
 
12
        });
 
13
        requirejs(['earth', 'prime/earth'],
 
14
        function   (earth,   primeEarth) {
 
15
 
 
16
            doh.register(
 
17
                "plugins",
 
18
                [
 
19
                    function plugins(t){
 
20
                        t.is("a", earth.getA().name);
 
21
                        t.is("c", earth.getC().name);
 
22
                        t.is("b", earth.getB().name);
 
23
                        t.is("aPrime", primeEarth.getA().name);
 
24
                        t.is("cPrime", primeEarth.getC().name);
 
25
                        t.is("bPrime", primeEarth.getB().name);
 
26
                     }
 
27
                ]
 
28
            );
 
29
            doh.run();
 
30
        });
 
31
 
 
32
 
 
33
 
 
34
 
 
35
 
 
36
    </script>
 
37
</head>
 
38
<body>
 
39
    <h1>almond: Simple Test</h1>
 
40
    <p>Check console for messages</p>
 
41
</body>
 
42
</html>