4
<title>require.js: paths Test</title>
5
<script type="text/javascript" src="../../require.js"></script>
6
<script type="text/javascript" src="../doh/runner.js"></script>
7
<script type="text/javascript" src="../doh/_browserRunner.js"></script>
8
<script type="text/javascript">
21
["require", "first!whatever"],
22
function(require, first) {
27
//First confirm there is only one script tag for each
29
var scripts = document.getElementsByTagName("script"),
30
i, counts = {}, modName, props, something;
31
for (var i = scripts.length - 1; i > -1; i--) {
32
modName = scripts[i].getAttribute("data-requiremodule");
33
if (modName && modName === "first" || modName === "first/first") {
38
t.is(1, scriptCounter);
39
t.is(2, globalCounter);
40
t.is("first", first.name);
41
t.is("second", first.secondName);
51
<h1>require.js: paths Test</h1>
52
<p>Check console for messages</p>