web-apps/vendor/requirejs/tests/NAMESPACE.html
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

33 lines
1,002 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>require.js: NAMESPACE Test</title>
<script type="text/javascript" src="NAMESPACE.js"></script>
<script type="text/javascript" src="doh/runner.js"></script>
<script type="text/javascript" src="doh/_browserRunner.js"></script>
<script type="text/javascript">
NAMESPACE.require(['one', 'dimple'], function(one, dimple) {
doh.register(
"namespaceTest",
[
function namespaceTest(t){
t.is("large", one.size);
t.is("dimple-blue", dimple.color);
}
]
);
doh.run();
});
</script>
</head>
<body>
<h1>require.js: NAMESPACE Test</h1>
<p>Only works after doing a build using the simpleNamespace.build.js file
in the r.js project.</p>
<p>Check console for messages</p>
</body>
</html>