UNPKG

can

Version:

MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.

44 lines (43 loc) 1.36 kB
<!DOCTYPE html> <html> <head> <title>require.js: Unique Dependency Test</title> <script type="text/javascript"> requirejsArgs= { dojoLocation:"../../../../.." }; </script> <script type="text/javascript" src="../requirejs-setup.js"></script> <script type="text/javascript" src="../../../../../dojo.js"></script> <script type="text/javascript"> require({ baseUrl: "./" }, ["require", "one", "two", "three", "doh"], function(require, one, two, three, doh) { doh.register( "uniques", [ function uniques(t){ t.is("one", one.name); t.is("three", one.threeName); t.is("three", one.threeName2); t.is("one", two.oneName); t.is("one", two.oneName2); t.is("two", two.name); t.is("three", two.threeName); t.is("three", three.name); } ] ); doh.run(); } ); </script> </head> <body> <h1>require.js: Unique Dependency Test</h1> <p>Make sure if a dependency is listed more than once code still operates correctly.</p> <p>Check console for messages</p> </body> </html>