]> git.proxmox.com Git - extjs.git/blame - extjs/packages/charts/test/specs/chart/series/sprite/PieSlice.js
add extjs 6.0.1 sources
[extjs.git] / extjs / packages / charts / test / specs / chart / series / sprite / PieSlice.js
CommitLineData
6527f429
DM
1describe('Ext.chart.series.sprite.PieSlice', function () {\r
2\r
3 describe('destroy', function () {\r
4 it("should remove itself from the surface", function () {\r
5 var surface = new Ext.draw.Surface({}),\r
6 // PieSlice uses the MarkerHolder mixin, if a MarkerHolder\r
7 // calls callParent in its 'destroy' method,\r
8 // this alters the destruction sequence and this\r
9 // test will fail.\r
10 sprite = new Ext.chart.series.sprite.PieSlice({}),\r
11 id = sprite.getId();\r
12\r
13 surface.add(sprite);\r
14 sprite.destroy();\r
15\r
16 expect(surface.getItems().length).toBe(0);\r
17 expect(surface.get(id)).toBe(undefined);\r
18\r
19 surface.destroy();\r
20 });\r
21 });\r
22\r
23});