@@ -147,102 +147,6 @@ describe('Chart Control', () => {
147147 } ;
148148 chartObj . refresh ( ) ;
149149 } ) ;
150-
151- it ( 'Checking to print single element' , ( done : Function ) => {
152- chartObj . loaded = ( args : Object ) : void => {
153- chartObj . print ( 'tempElement' ) ;
154- }
155- chartObj . beforePrint = ( args : IPrintEventArgs ) : void => {
156- expect ( args . htmlContent . outerHTML . indexOf ( '<div id="container_Annotation_0"' ) > - 1 ) . toBe ( false ) ;
157- expect ( args . htmlContent . outerHTML . indexOf ( '<div id="tempElement"' ) > - 1 ) . toBe ( true ) ;
158- done ( ) ;
159- } ;
160- chartObj . refresh ( ) ;
161- } ) ;
162- it ( 'Checking export' , ( done : Function ) => {
163- chartObj . exportModule . export ( 'JPEG' , 'chart' ) ;
164- setTimeout ( ( ) => {
165- expect ( '' ) . toBe ( '' ) ;
166- done ( ) ;
167- } , 500 ) ;
168- } ) ;
169- it ( 'Checking export - SVG' , ( done : Function ) => {
170- chartObj . exportModule . export ( 'SVG' , 'chart' ) ;
171- setTimeout ( ( ) => {
172- expect ( '' ) . toBe ( '' ) ;
173- done ( ) ;
174- } , 500 ) ;
175- } ) ;
176- it ( 'Checking export - PDF' , ( done : Function ) => {
177- chartObj . exportModule . export ( 'PDF' , 'chart' ) ;
178- setTimeout ( ( ) => {
179- expect ( '' ) . toBe ( '' ) ;
180- done ( ) ;
181- } , 500 ) ;
182- } ) ;
183- it ( 'Checking export - PDF - Potrait' , ( done : Function ) => {
184- chartObj . exportModule . export ( 'PDF' , 'chart' , PdfPageOrientation . Portrait ) ;
185- setTimeout ( ( ) => {
186- expect ( '' ) . toBe ( '' ) ;
187- done ( ) ;
188- } , 500 ) ;
189- } ) ;
190- it ( 'Checking export - PDF - multi controls' , ( done : Function ) => {
191- chartObj . exportModule . export ( 'PDF' , 'chart' , PdfPageOrientation . Portrait , [ chartObj , chartObj ] , 500 , 450 ) ;
192- setTimeout ( ( ) => {
193- expect ( '' ) . toBe ( '' ) ;
194- done ( ) ;
195- } , 500 ) ;
196- } ) ;
197-
198- it ( 'Checking export - PDF - multi controls in horizontal mode' , ( done : Function ) => {
199- chartObj . exportModule . export ( 'PDF' , 'chart' , PdfPageOrientation . Portrait , [ chartObj , chartObj ] , 500 , 450 , false ) ;
200- setTimeout ( ( ) => {
201- expect ( '' ) . toBe ( '' ) ;
202- done ( ) ;
203- } , 500 ) ;
204- } ) ;
205-
206- it ( 'Checking export - PDF - multi controls width out size' , ( done : Function ) => {
207- chartObj . exportModule . export ( 'PDF' , 'chart' , PdfPageOrientation . Portrait , [ chartObj , chartObj ] ) ;
208- setTimeout ( ( ) => {
209- expect ( '' ) . toBe ( '' ) ;
210- done ( ) ;
211- } , 500 ) ;
212- } ) ;
213-
214- it ( 'Checking to export height' , ( done : Function ) => {
215- chartObj . exportModule . export ( 'JPEG' , 'result' ) ;
216- chartObj . beforeExport = ( args : IExportEventArgs ) : void => {
217- args . height = 500 ;
218- } ;
219- setTimeout ( ( ) => {
220- expect ( '' ) . toBe ( '' ) ;
221- done ( ) ;
222- } , 500 ) ;
223- } ) ;
224-
225- it ( 'Checking to export width' , ( done : Function ) => {
226- chartObj . exportModule . export ( 'JPEG' , 'result' ) ;
227- chartObj . beforeExport = ( args : IExportEventArgs ) : void => {
228- args . width = 800 ;
229- } ;
230- setTimeout ( ( ) => {
231- expect ( '' ) . toBe ( '' ) ;
232- done ( ) ;
233- } , 500 ) ;
234- } ) ;
235-
236- it ( 'Checking to export cancel' , ( done : Function ) => {
237- chartObj . exportModule . export ( 'JPEG' , 'result' ) ;
238- chartObj . beforeExport = ( args : IExportEventArgs ) : void => {
239- args . cancel = true ;
240- } ;
241- setTimeout ( ( ) => {
242- expect ( '' ) . toBe ( '' ) ;
243- done ( ) ;
244- } , 500 ) ;
245- } ) ;
246150 } ) ;
247151 it ( 'memory leak' , ( ) => {
248152 profile . sample ( ) ;
0 commit comments