Debian Codegraph @

tests/plugins/plugins.html

raw
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>