topical media & game development
mobile-query-three-tests-tests-tquery.world-test.js / js
describe('tQuery.world', function(){
it('should support webgl', function(){
var world = tQuery.createWorld();
console.assert(tQuery.World.hasWebGL() === true);
world.destroy();
});
it('should not crash on creation', function(done){
var container = document.getElementById('container');
var world = tQuery.createWorld().appendTo(container);
var mesh = tQuery.createTorus().addTo(world);
setTimeout(function(){
world.destroy();
done();
}, 100);
});
});
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.