Skip to content

Commit

Permalink
Return from tests that require extensions
Browse files Browse the repository at this point in the history
The following tests are skipped:
* Scene/Primitive renders with distance display condition per instance attribute (floatingPointTextures)
* Scene/GroundPrimitive renders with distance display condition per instance attribute (floatingPointTextures)
* Scene/BillboardCollection renders more than 16k billboards (instancedArray)
  • Loading branch information
shehzan10 committed Feb 10, 2017
1 parent 03bc20f commit c9dee6a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Specs/Scene/BillboardCollectionSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,10 @@ defineSuite([
});

it('renders more than 16K billboards', function() {
if(!context.instancedArrays) {
return;
}

for ( var i = 0; i < 16 * 1024; ++i) {
billboards.add({
position : Cartesian3.ZERO,
Expand Down
4 changes: 4 additions & 0 deletions Specs/Scene/GroundPrimitiveSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,10 @@ defineSuite([
});

it('renders with distance display condition per instance attribute', function() {
if (!context.floatingPointTexture) {
return;
}

if (!GroundPrimitive.isSupported(scene)) {
return;
}
Expand Down
4 changes: 4 additions & 0 deletions Specs/Scene/PrimitiveSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,10 @@ defineSuite([
});

it('renders with distance display condition per instance attribute', function() {
if (!context.floatingPointTexture) {
return;
}

var near = 10000.0;
var far = 1000000.0;
var rect = Rectangle.fromDegrees(-1.0, -1.0, 1.0, 1.0);
Expand Down

0 comments on commit c9dee6a

Please sign in to comment.