Skip to content

Commit

Permalink
Fix failing tests when running with webgl stub
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Aug 1, 2017
1 parent 14abad1 commit 7996f7c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Specs/Scene/ModelSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2115,8 +2115,20 @@ defineSuite([
var context = scene.context;
var uint32Supported = context._elementIndexUint;
context._elementIndexUint = false;
return loadModel(boxUint32Indices).otherwise(function(e) {

var model = primitives.add(Model.fromGltf({
url : boxUint32Indices
}));

return pollToPromise(function() {
// Render scene to progressively load the model
scene.renderForSpecs();
return model.ready;
}, { timeout: 10000 }).then(function() {
fail('should not resolve');
}).otherwise(function(e) {
expect(e).toBeDefined();
primitives.remove(model);
context._elementIndexUint = uint32Supported;
});
});
Expand Down

0 comments on commit 7996f7c

Please sign in to comment.