forked from requirejs/requirejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple-nohead.html
More file actions
30 lines (28 loc) · 840 Bytes
/
simple-nohead.html
File metadata and controls
30 lines (28 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<h1>require.js: Simple Test, no head tag</h1>
<p>Check console for messages</p>
<script type="text/javascript">
var require = {
baseUrl: "./"
};
</script>
<script type="text/javascript" src="../require.js"></script>
<script type="text/javascript" src="doh/runner.js"></script>
<script type="text/javascript" src="doh/_browserRunner.js"></script>
<script type="text/javascript">
require(["require", "simple", "dimple", "func"],
function(require, simple, dimple, func) {
doh.register(
"simple-nohead",
[
function colors(t){
t.is("blue", simple.color);
t.is("dimple-blue", dimple.color);
t.is("You called a function", func());
}
]
);
doh.run();
}
);
</script>