forked from requirejs/requirejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjqueryVersion.html
More file actions
39 lines (39 loc) · 1.36 KB
/
jqueryVersion.html
File metadata and controls
39 lines (39 loc) · 1.36 KB
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
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html>
<head>
<title>jQuery Version Test</title>
<script src="../../require.js"></script>
<script type="text/javascript" src="../doh/runner.js"></script>
<script type="text/javascript" src="../doh/_browserRunner.js"></script>
<script>
require({
baseUrl: "./scripts/",
paths: {
jquery: "jquery-1.5.2"
},
jQuery: "1.5.2"
},
["require", "jquery-1.4.4"],
function(require) {
require(["require", "jquery"], function (require) {
doh.register(
"jqueryVersion",
[
function jqueryVersion(t){
t.is("1.5.2", require('jquery').fn.jquery);
}
]
);
doh.run();
});
}
);
</script>
</head>
<body>
<h1>jQuery Version Test</h1>
<p>Tests loading of two different jQuery versions but only using the
second one since it was the one specified in the require config.</p>
<p>Check console for output.</p>
</body>
</html>