15832144755
2022-01-06 7b4c8991dca9cf2a809a95e239d144697d3afb56
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { Clock } from "../../../Source/Cesium.js";
import { Timeline } from "../../../Source/Cesium.js";
 
describe("Widgets/Timeline/Timeline", function () {
  var container;
  beforeEach(function () {
    container = document.createElement("span");
    container.id = "container";
    container.style.width = "1px";
    container.style.height = "1px";
    document.body.appendChild(container);
  });
 
  afterEach(function () {
    document.body.removeChild(container);
  });
 
  it("sanity check", function () {
    var timeline = new Timeline(container, new Clock());
    timeline.resize();
    expect(timeline.isDestroyed()).toEqual(false);
    timeline.destroy();
    expect(timeline.isDestroyed()).toEqual(true);
  });
});