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

« back to all changes in this revision

Viewing changes to tests/configDeps/configDeps.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: configDeps Test</title>
 
5
    <script type="text/javascript" src="../doh/runner.js"></script>
 
6
    <script type="text/javascript" src="../doh/_browserRunner.js"></script>
 
7
    <script type="text/javascript" src="../../almond.js"></script>
 
8
    <script type="text/javascript">
 
9
        define('b', {
 
10
            name: 'b'
 
11
        });
 
12
 
 
13
        define('a', ['b'], function (b) {
 
14
 
 
15
            doh.register(
 
16
                'configDeps',
 
17
                [
 
18
                    function configDeps(t){
 
19
                        t.is('b', b.name);
 
20
                    }
 
21
                ]
 
22
            );
 
23
            doh.run();
 
24
 
 
25
        });
 
26
 
 
27
        require.config({
 
28
            deps: ['a']
 
29
        });
 
30
    </script>
 
31
</head>
 
32
<body>
 
33
    <h1>almond: configDeps Test</h1>
 
34
 
 
35
    <p>Make sure almond allows using config.deps. More info:
 
36
    <a href="https://github.com/jrburke/almond/issues/52">52</a>.</p>
 
37
 
 
38
    <p>Check console for messages</p>
 
39
</body>
 
40
</html>