Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (29 sloc) 1.002 kB
<!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>
Jump to Line
Something went wrong with that request. Please try again.