web-apps/vendor/requirejs/tests/jquery/jqueryDynamic2.html

46 lines
1.3 KiB
HTML
Raw Normal View History

2016-03-11 00:48:53 +00:00
<!DOCTYPE html>
<html>
<head>
<title>jQuery+RequireJS Sample Page</title>
<script type="text/javascript" src="../doh/runner.js"></script>
<script type="text/javascript" src="../doh/_browserRunner.js"></script>
<script src="../../require.js"></script>
<script>
var master = new doh.Deferred(),
masterCount = 0;
function readyFired() {
masterCount += 1;
if (masterCount === 3) {
master.callback(true);
}
}
doh.register(
"jqueryDynamic",
[
{
name: "jqueryDynamic",
timeout: 3000,
runTest: function() {
return master;
}
}
]
);
doh.run();
require({
"baseUrl": "./scripts/",
"paths": {
"jquery": "jquery-1.7.1"
}
});
require(["jquery", "dynamicApp"]);
</script>
</head>
<body>
<h1>jQuery+RequireJS Test Page</h1>
<p>Tests loading of jquery plugins with require.</p>
</body>
</html>