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.
27 lines
999 B
JavaScript
27 lines
999 B
JavaScript
import { Pass } from "../../Source/Cesium.js";
|
|
import { FrustumCommands } from "../../Source/Cesium.js";
|
|
|
|
describe("Scene/FrustumCommands", function () {
|
|
it("constructs without arguments", function () {
|
|
var frustum = new FrustumCommands();
|
|
expect(frustum.near).toEqual(0.0);
|
|
expect(frustum.far).toEqual(0.0);
|
|
expect(frustum.commands).toBeDefined();
|
|
expect(frustum.commands.length).toEqual(Pass.NUMBER_OF_PASSES);
|
|
expect(frustum.indices).toBeDefined();
|
|
expect(frustum.indices.length).toEqual(Pass.NUMBER_OF_PASSES);
|
|
});
|
|
|
|
it("constructs with arguments", function () {
|
|
var near = 1.0;
|
|
var far = 2.0;
|
|
var frustum = new FrustumCommands(near, far);
|
|
expect(frustum.near).toEqual(near);
|
|
expect(frustum.far).toEqual(far);
|
|
expect(frustum.commands).toBeDefined();
|
|
expect(frustum.commands.length).toEqual(Pass.NUMBER_OF_PASSES);
|
|
expect(frustum.indices).toBeDefined();
|
|
expect(frustum.indices.length).toEqual(Pass.NUMBER_OF_PASSES);
|
|
});
|
|
});
|