dojo
Version:
Dojo core is a powerful, lightweight library that makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.
24 lines (22 loc) • 506 B
JavaScript
require({
baseUrl: './'
},
['require', 'map', 'simple', 'dimple', 'func', 'doh'],
function (require, map, simple, dimple, func, doh) {
doh.register(
'simple',
[
function colors(t) {
t.is('map', map.name);
t.is('blue', simple.color);
t.is('dimple-blue', dimple.color);
t.is('You called a function', func());
}
]
);
//In rhino there is no more simple tests, but in web browser there is.
if (typeof moreSimpleTests === 'undefined') {
doh.run();
}
}
);