topical media & game development
mobile-graphic-enchant-tests-gl-qunit-primitive.gl.enchant.js-primitive.gl.js / js
module('primitive.gl.enchant.js', {
setup: function() {
enchant();
},
teardown: function() {
}
});
if (document.createElement('canvas').getContext('experimental-webgl')) {
/*
* issue#54.
*
* BillboardAnimation#frame
*/
test('BillboardAnimation#frame', function() {
var game = new Core();
var scene = new Scene3D();
var ba = new BillboardAnimation();
scene.addChild(ba);
game.dispatchEvent(new Event("enterframe"));
var error = game.GL._gl.getError();
notEqual(error, gl.INVALID_OPERATION);
});
}else{
console.log('\nskipping tests using webgl..');
}
(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.