Debian Codegraph @

tests/configDeps/configDeps.html

raw
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/requirejs/almond/issues/52">52</a>.</p>
37
38 <p>Check console for messages</p>
39 </body>
40 </html>