web-apps/vendor/requirejs/tests/jquery/jqueryDynamic2.html
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

46 lines
1.3 KiB
HTML

<!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>