This commit is contained in:
Éric Lemoine
2013-02-20 10:38:25 +01:00
parent 17c3936ab6
commit 5d14b9e2d4
1919 changed files with 559755 additions and 2588 deletions

View File

@@ -0,0 +1,32 @@
<html>
<head>
<script type="text/javascript" src="../../../dojo.js"></script>
<script type="text/javascript">
// TODO: add tests to check dojo.ready, dojo.config.addOnLoad, require.ready, and priority queue
require(["dojo/ready"], function(ready){
var
check1, check2, check3,
someObject = {},
someInstance = {
someMethod:function() { check3 = 2;}
};
ready(function() { check1= 1; });
ready(someObject, function() { check2= this; });
ready(someInstance, "someMethod");
require(["dojo", "doh"], function(dojo, doh) {
dojo.ready(function() {
doh.register("t", [
function(t){
t.is(check1, 1);
t.is(check2, someObject);
t.is(check3, 2);
}
]);
doh.runOnLoad();
});
});
</script>
</head>
<body>
</body>
</html>