Skip to content

Commit

Permalink
updated spec for unsupported_extension
Browse files Browse the repository at this point in the history
  • Loading branch information
srothst1 committed Jun 1, 2021
1 parent c0e632c commit 3b7facf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Specs/Scene/Cesium3DTilesetSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,28 @@ describe(
});
});

it("rejects readyPromise with unsupported extension", function () {
var tilesetJson = {
asset: {
version: 1.0,
},
extensionsUsed: ["unsupported_extension"],
extensionsRequired: ["unsupported_extension"],
};

var uri = "data:text/plain;base64," + btoa(JSON.stringify(tilesetJson));

options.url = uri;
var tileset = scene.primitives.add(new Cesium3DTileset(options));
return tileset.readyPromise
.then(function () {
fail("should not resolve");
})
.otherwise(function (error) {
expect(tileset.ready).toEqual(false);
});
});

it("url and tilesetUrl set up correctly given tileset JSON filepath", function () {
var path = "Data/Cesium3DTiles/Tilesets/TilesetOfTilesets/tileset.json";
var tileset = new Cesium3DTileset({
Expand Down

0 comments on commit 3b7facf

Please sign in to comment.