You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.9 KiB
JavaScript

import { Cesium3DTileContent } from "../../Source/Cesium.js";
describe("Scene/Cesium3DTileContent", function () {
it("throws", function () {
var content = new Cesium3DTileContent();
expect(function () {
return content.featuresLength;
}).toThrowDeveloperError();
expect(function () {
return content.pointsLength;
}).toThrowDeveloperError();
expect(function () {
return content.trianglesLength;
}).toThrowDeveloperError();
expect(function () {
return content.geometryByteLength;
}).toThrowDeveloperError();
expect(function () {
return content.texturesByteLength;
}).toThrowDeveloperError();
expect(function () {
return content.batchTableByteLength;
}).toThrowDeveloperError();
expect(function () {
return content.innerContents;
}).toThrowDeveloperError();
expect(function () {
return content.readyPromise;
}).toThrowDeveloperError();
expect(function () {
return content.tileset;
}).toThrowDeveloperError();
expect(function () {
return content.tile;
}).toThrowDeveloperError();
expect(function () {
return content.url;
}).toThrowDeveloperError();
expect(function () {
return content.batchTable;
}).toThrowDeveloperError();
expect(function () {
return content.hasProperty(0, "height");
}).toThrowDeveloperError();
expect(function () {
return content.getFeature(0);
}).toThrowDeveloperError();
expect(function () {
content.applyDebugSettings();
}).toThrowDeveloperError();
expect(function () {
content.applyStyle();
}).toThrowDeveloperError();
expect(function () {
content.update();
}).toThrowDeveloperError();
expect(function () {
content.isDestroyed();
}).toThrowDeveloperError();
expect(function () {
content.destroy();
}).toThrowDeveloperError();
});
});