3.0 source code
This commit is contained in:
31
OfficeWeb/vendor/requirejs/tests/circular-tests.js
vendored
Normal file
31
OfficeWeb/vendor/requirejs/tests/circular-tests.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
require({
|
||||
baseUrl: "./"
|
||||
},
|
||||
["require", "two", "funcTwo", "funcThree"],
|
||||
function(require, two, funcTwo, funcThree) {
|
||||
var args = two.doSomething();
|
||||
var twoInst = new funcTwo("TWO");
|
||||
doh.register(
|
||||
"circular",
|
||||
[
|
||||
function circular(t) {
|
||||
t.is("small", args.size);
|
||||
t.is("redtwo", args.color);
|
||||
}
|
||||
]
|
||||
);
|
||||
doh.run();
|
||||
|
||||
doh.register(
|
||||
"circularFunc",
|
||||
[
|
||||
function circularFunc(t) {
|
||||
t.is("TWO", twoInst.name);
|
||||
t.is("ONE-NESTED", twoInst.oneName());
|
||||
t.is("THREE-THREE_SUFFIX", funcThree("THREE"));
|
||||
}
|
||||
]
|
||||
);
|
||||
doh.run();
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user