Debian Codegraph @

tests/topRelativeRequire/topRelativeRequire.html

raw
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>almond: Top Relative Require 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('something', {
10 name: 'something'
11 });
12
13 require(['./something'], function(something){
14 doh.register(
15 'topRelativeRequire',
16 [
17 function topRelativeRequire(t){
18 t.is('something', something.name);
19 }
20 ]
21 );
22 doh.run();
23 });
24 </script>
25 </head>
26 <body>
27 <h1>almond: Top Relative Require Test</h1>
28
29 <p>Test top relative require . More info:
30 <a href="https://github.com/requirejs/almond/issues/46">46</a>.</p>
31
32 <p>Check console for messages</p>
33 </body>
34 </html>