1 'encoding UTF-8 Do not remove or change this line!
2 '**************************************************************************
3 ' DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 ' Copyright 2000, 2010 Oracle and/or its affiliates.
7 ' OpenOffice.org - a multi-platform office productivity suite
9 ' This file is part of OpenOffice.org.
11 ' OpenOffice.org is free software: you can redistribute it and/or modify
12 ' it under the terms of the GNU Lesser General Public License version 3
13 ' only, as published by the Free Software Foundation.
15 ' OpenOffice.org is distributed in the hope that it will be useful,
16 ' but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ' GNU Lesser General Public License version 3 for more details
19 ' (a copy is included in the LICENSE file that accompanied this code).
21 ' You should have received a copy of the GNU Lesser General Public License
22 ' version 3 along with OpenOffice.org. If not, see
23 ' <http://www.openoffice.org/license.html>
24 ' for a copy of the LGPLv3 License.
26 '/************************************************************************
28 '* owner : oliver.craemer@oracle.com
30 '* short description : Continue Chart resource test - Menu FORMAT
32 '************************************************************************
34 ' #1 tFormatXAxisMainGrid
35 ' #1 tFormatYAxisMainGrid
36 ' #1 tFormatZAxisMainGrid
37 ' #1 tFormatXAxisMinorGrid
38 ' #1 tFormatYAxisMinorGrid
39 ' #1 tFormatZAxisMinorGrid
40 ' #1 tFormatAllAxesGrids
43 ' #1 tFormatChartFloor
46 ' #1 tFormatDataRanges
49 '\************************************************************************
51 testcase tFormatXAxisMainGrid
52 '///<u><b>Dialog test after invoking Format::Grid::X Axis Main Grid</b></u>
55 '///+<li>Load simple chart document</li>
56 if fLoadVerySimpleChartAndSaveLocal() > 0 then
57 warnlog "Loading test document seems to have failed -> Check this out!"
60 '///+<li>Select chart using navigator</li>
62 '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
65 '///+<li>Invoke Format::Chart Type</li>
66 if fInvokeChartTypeDialog() > 0 then
67 warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
71 '///+<li>Change Chart type to STOCK</li>
72 if fSetChartType( "stock" ) > 0 then
73 warnlog "Something went wrong setting chart type to STOCK -> Check this out! (Previous log may help you)"
77 '///+<li>Close Chart Type dialog</li>
78 if fCloseChartTypeDialogOK() > 0 then
79 warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
83 '///+<li>Invoke Insert::Grids</li>
84 if fInvokeGridsDialog() > 0 then
85 warnlog "Something went wrong trying to invoke the Grids dialog -> Check this out! (Previous log may help you)"
89 Kontext "InsertGridsDialog"
90 '///+<li>Check Main Grid X Axis</li>
91 if fSetGrid( MainGridXAxis , TRUE ) > 0 then
92 warnlog "Something went wrong enabling Main Grid X Axis -> Check this out! (Previous log may help you)"
96 '///+<li>Close Grids dialog</li>
97 if fCloseGridsDialogOK() > 0 then
98 warnlog "Something went wrong trying to close the Grids dialog -> Check this out! (Previous log may help you)"
102 '///+<li>Invoke Format::Grid::X Axis Main Grid</li>
103 FormatGridXAxisMainGrid
104 '///+<li>Check if tab-page Line exists</li>
105 Kontext "TabFormatChartLine"
106 call DialogTest ( TabFormatChartLine )
107 '///+<li>Close dialog</li>
108 TabFormatChartLine.Cancel
109 '///+<li>Close document</li>
110 Kontext "DocumentCalc"
111 DocumentCalc.TypeKeys "<Escape>"
116 '-------------------------------------------------------------
117 testcase tFormatYAxisMainGrid
118 '///<u><b>Dialog test after invoking Format::Grid::Y Axis Main Grid</b></u>
121 '///+<li>Load simple chart document</li>
122 if fLoadVerySimpleChartAndSaveLocal() > 0 then
123 warnlog "Loading test document seems to have failed -> Check this out!"
126 '///+<li>Select chart using navigator</li>
128 '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
131 '///+<li>Invoke Format::Chart Type</li>
132 if fInvokeChartTypeDialog() > 0 then
133 warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
137 '///+<li>Change Chart type to AREA</li>
138 if fSetChartType( "area" ) > 0 then
139 warnlog "Something went wrong setting chart type to AREA -> Check this out! (Previous log may help you)"
143 '///+<li>Close Chart Type dialog</li>
144 if fCloseChartTypeDialogOK() > 0 then
145 warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
149 '///+<li>Invoke Format::Grid::Y Axis Main Grid</li>
150 FormatGridYAxisMainGrid
151 '///+<li>Check if tab-page Line exists</li>
152 Kontext "TabFormatChartLine"
153 call DialogTest ( TabFormatChartLine )
154 '///+<li>Close dialog</li>
155 TabFormatChartLine.Cancel
156 '///+<li>Close document</li>
157 Kontext "DocumentCalc"
158 DocumentCalc.TypeKeys "<Escape>"
163 '-------------------------------------------------------------
164 testcase tFormatZAxisMainGrid
165 '///<u><b>Dialog test after invoking Format::Grid::Z Axis Main Grid</b></u>
168 '///+<li>Load simple chart document</li>
169 if fLoadVerySimpleChartAndSaveLocal() > 0 then
170 warnlog "Loading test document seems to have failed -> Check this out!"
173 '///+<li>Select chart using navigator</li>
175 '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
178 '///+<li>Invoke Format::Chart Type</li>
179 if fInvokeChartTypeDialog() > 0 then
180 warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
184 '///+<li>Change Chart type to LINE</li>
185 if fSetChartType( "line" ) > 0 then
186 warnlog "Something went wrong setting chart type to LINE -> Check this out! (Previous log may help you)"
190 '///+<li>Change Chart type Variant to #4 (3D Variant)</li>
191 if fSetChartTypeVariant( 4 ) > 0 then
192 warnlog "Something went wrong selecting 4th chart type variant -> Check this out! (Previous log may help you)"
196 '///+<li>Close Chart Type dialog</li>
197 if fCloseChartTypeDialogOK() > 0 then
198 warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
202 '///+<li>Invoke Insert::Grids</li>
203 if fInvokeGridsDialog() > 0 then
204 warnlog "Something went wrong trying to invoke the Grids dialog -> Check this out! (Previous log may help you)"
208 Kontext "InsertGridsDialog"
209 '///+<li>Check Main Grid Z Axis</li>
210 if fSetGrid( MainGridZAxis , TRUE ) > 0 then
211 warnlog "Something went wrong enabling Main Grid X Axis -> Check this out! (Previous log may help you)"
215 '///+<li>Close Grids dialog</li>
216 if fCloseGridsDialogOK() > 0 then
217 warnlog "Something went wrong trying to close the Grids dialog -> Check this out! (Previous log may help you)"
221 '///+<li>Invoke Format::Grid::Z Axis Main Grid</li>
222 FormatGridZAxisMainGrid
223 '///+<li>Check if tab-page Line exists</li>
224 Kontext "TabFormatChartLine"
225 call DialogTest ( TabFormatChartLine )
226 '///+<li>Close dialog</li>
227 TabFormatChartLine.Cancel
228 '///+<li>Close document</li>
229 Kontext "DocumentCalc"
230 DocumentCalc.TypeKeys "<Escape>"
236 '-------------------------------------------------------------------------------
238 testcase tFormatXAxisMinorGrid
239 '///<u><b>Dialog test after invoking Format::Grid::X Axis Minor Grid</b></u>
240 '/// Load simple chart document
241 if fLoadVerySimpleChartAndSaveLocal() > 0 then
242 warnlog "Loading test document seems to have failed -> Check this out!"
245 '/// Select chart using navigator
247 '/// Invoke Edit::Object::Edit to enter Inplace Mode
250 '/// Invoke Format::Chart Type
251 if fInvokeChartTypeDialog() > 0 then
252 warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
256 '/// Change Chart type to xy chart
257 if fSetChartType( "xy" ) > 0 then
258 warnlog "Something went wrong setting chart type to xy chart -> Check this out! (Previous log may help you)"
262 '/// Close Chart Type dialog
263 if fCloseChartTypeDialogOK() > 0 then
264 warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
268 '/// Invoke Insert::Grids
269 if fInvokeGridsDialog() > 0 then
270 warnlog "Something went wrong trying to invoke the Grids dialog -> Check this out! (Previous log may help you)"
274 Kontext "InsertGridsDialog"
275 '/// Check Minor Grid X Axis
276 if fSetGrid( MinorGridXAxis , TRUE ) > 0 then
277 warnlog "Something went wrong enabling Minor Grid Y Axis -> Check this out! (Previous log may help you)"
281 '/// Close Grids dialog
282 if fCloseGridsDialogOK() > 0 then
283 warnlog "Something went wrong trying to close the Grids dialog -> Check this out! (Previous log may help you)"
287 '/// Invoke Format::Grid::X Axis Minor Grid
288 FormatGridXAxisMinorGrid
289 '/// Check if tab-page Line exists
290 Kontext "TabFormatChartLine"
291 call DialogTest ( TabFormatChartLine )
293 TabFormatChartLine.Cancel
295 Kontext "DocumentCalc"
296 DocumentCalc.TypeKeys "<Escape>"
300 '-------------------------------------------------------------------------------
302 testcase tFormatYAxisMinorGrid
303 '///<u><b>Dialog test after invoking Format::Grid::Y Axis Minor Grid</b></u>
306 '///+<li>Load simple chart document</li>
307 if fLoadVerySimpleChartAndSaveLocal() > 0 then
308 warnlog "Loading test document seems to have failed -> Check this out!"
311 '///+<li>Select chart using navigator</li>
313 '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
316 '///+<li>Invoke Format::Chart Type</li>
317 if fInvokeChartTypeDialog() > 0 then
318 warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
322 '///+<li>Change Chart type to NET</li>
323 if fSetChartType( "net" ) > 0 then
324 warnlog "Something went wrong setting chart type to NET -> Check this out! (Previous log may help you)"
328 '///+<li>Close Chart Type dialog</li>
329 if fCloseChartTypeDialogOK() > 0 then
330 warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
334 '///+<li>Invoke Insert::Grids</li>
335 if fInvokeGridsDialog() > 0 then
336 warnlog "Something went wrong trying to invoke the Grids dialog -> Check this out! (Previous log may help you)"
340 Kontext "InsertGridsDialog"
341 '///+<li>Check Minor Grid Y Axis</li>
342 if fSetGrid( MinorGridYAxis , TRUE ) > 0 then
343 warnlog "Something went wrong enabling Minor Grid Y Axis -> Check this out! (Previous log may help you)"
347 '///+<li>Close Grids dialog</li>
348 if fCloseGridsDialogOK() > 0 then
349 warnlog "Something went wrong trying to close the Grids dialog -> Check this out! (Previous log may help you)"
353 '///+<li>Invoke Format::Grid::Y Axis Minor Grid</li>
354 FormatGridYAxisMinorGrid
355 '///+<li>Check if tab-page Line exists</li>
356 Kontext "TabFormatChartLine"
357 call DialogTest ( TabFormatChartLine )
358 '///+<li>Close dialog</li>
359 TabFormatChartLine.Cancel
360 '///+<li>Close document</li>
361 Kontext "DocumentCalc"
362 DocumentCalc.TypeKeys "<Escape>"
368 '-------------------------------------------------------------------------------
370 testcase tFormatAllAxesGrids
371 '///<u><b>Dialog test after invoking Format::Grid::All Grids</b></u>
374 '///+<li>Load simple chart document</li>
375 if fLoadVerySimpleChartAndSaveLocal() > 0 then
376 warnlog "Loading test document seems to have failed -> Check this out!"
379 '///+<li>Select chart using navigator</li>
381 '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
384 '///+<li>Invoke Format::Chart Type</li>
385 if fInvokeChartTypeDialog() > 0 then
386 warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
390 '///+<li>Change Chart type to XY</li>
391 if fSetChartType( "xy" ) > 0 then
392 warnlog "Something went wrong setting chart type to XY -> Check this out! (Previous log may help you)"
396 '///+<li>Change Chart type Variant to #4 (3D Variant)</li>
397 if fSetChartTypeVariant( 4 ) > 0 then
398 warnlog "Something went wrong selecting 4th chart type variant -> Check this out! (Previous log may help you)"
402 '///+<li>Close Chart Type dialog</li>
403 if fCloseChartTypeDialogOK() > 0 then
404 warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
408 '///+<li>Invoke Format::Grid::All Grids</li>
409 FormatGridAllAxisGrids
410 '///+<li>Check if tab-page Line exists</li>
411 Kontext "TabFormatChartLine"
412 call DialogTest ( TabFormatChartLine )
413 '///+<li>Close dialog</li>
414 TabFormatChartLine.Cancel
415 '///+<li>Close document</li>
416 Kontext "DocumentCalc"
417 DocumentCalc.TypeKeys "<Escape>"
422 '-------------------------------------------------------------
423 testcase tFormatLegend
424 '///<u><b>Dialog test after invoking Format::Legend</b></u>
427 '///+<li>Load simple chart document</li>
428 if fLoadVerySimpleChartAndSaveLocal() > 0 then
429 warnlog "Loading test document seems to have failed -> Check this out!"
432 '///+<li>Select chart using navigator</li>
434 '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
437 '///+<li>Invoke Format::Chart Type</li>
438 if fInvokeChartTypeDialog() > 0 then
439 warnlog "Something went wrong trying to invoke the Chart Types dialog -> Check this out! (Previous log may help you)"
443 '///+<li>Change Chart type to PIE</li>
444 if fSetChartType( "pie" ) > 0 then
445 warnlog "Something went wrong setting chart type to PIE -> Check this out! (Previous log may help you)"
449 '///+<li>Close Chart Type dialog</li>
450 if fCloseChartTypeDialogOK() > 0 then
451 warnlog "Something went wrong trying to close the Chart Type dialog -> Check this out! (Previous log may help you)"
455 '///+<li>Invoke Format::Legend</li>
457 '///+<li>Goto tab-page Borders</li>
459 active.SetPage TabFormatChartBorders
460 '///+<li>Check if tab-page Borders exists</li>
461 Kontext "TabFormatChartBorders"
462 call DialogTest ( TabFormatChartBorders )
464 '///+<li>Goto tab-page Area</li>
466 active.SetPage TabArea
467 '///+<li>Check if tab-page Area exists</li>
469 call DialogTest ( TabArea )
471 '///+<li>Goto tab-page Transparency</li>
473 active.SetPage TabTransparency
474 '///+<li>Check if tab-page Transparency exists</li>
475 Kontext "TabTransparency"
476 call DialogTest ( TabTransparency )
478 '///+<li>Goto tab-page Characters</li>
480 active.SetPage TabFont
481 '///+<li>Check if tab-page Characters exists</li>
483 call DialogTest ( TabFont )
485 '///+<li>Goto tab-page Font Effects</li>
487 active.SetPage TabFontEffects
488 '///+<li>Check if tab-page Font Effects exists</li>
489 Kontext "TabFontEffects"
490 call DialogTest ( TabFontEffects )
492 '///+<li>Goto tab-page Position</li>
494 active.SetPage TabLegendPosition
495 '///+<li>Check if tab-page Alignment exists</li>
496 Kontext "TabLegendPosition"
497 call DialogTest ( TabLegendPosition )
499 if gAsianSup = true then
501 Active.SetPage TabAsianTypography
502 Kontext "TabAsianTypography"
503 call DialogTest ( TabAsianTypography )
504 TabAsianTypography.Cancel
506 '///+<li>Close dialog</li>
507 TabLegendPosition.Cancel
509 '///+<li>Close document</li>
510 Kontext "DocumentCalc"
511 DocumentCalc.TypeKeys "<Escape>"
516 '-------------------------------------------------------------
517 testcase tFormatChartWall
518 '///<u><b>Dialog test after invoking Format::Chart Wall</b></u>
521 '///+<li>Load simple chart document</li>
522 if fLoadVerySimpleChartAndSaveLocal() > 0 then
523 warnlog "Loading test document seems to have failed -> Check this out!"
526 '///+<li>Select chart using navigator</li>
528 '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
531 '///+<li>Invoke Format::Chart Wall</li>
533 '///+<li>Goto tab-page Borders</li>
535 active.SetPage TabFormatChartBorders
536 '///+<li>Check if tab-page Borders exists</li>
537 Kontext "TabFormatChartBorders"
538 call DialogTest ( TabFormatChartBorders )
540 '///+<li>Goto tab-page Area</li>
542 active.SetPage TabArea
543 '///+<li>Check if tab-page Area exists</li>
545 call DialogTest ( TabArea )
547 '///+<li>Goto tab-page Transparency</li>
549 active.SetPage TabTransparency
550 '///+<li>Check if tab-page Transparency exists</li>
551 Kontext "TabTransparency"
552 call DialogTest ( TabTransparency )
554 '///+<li>Close dialog</li>
555 TabTransparency.Cancel
556 '///+<li>Close document</li>
557 Kontext "DocumentCalc"
558 DocumentCalc.TypeKeys "<Escape>"
563 '-------------------------------------------------------------
564 testcase tFormatChartFloor
565 '///<u><b>Dialog test after invoking Format::Chart Floor</b></u>
568 '///+<li>Load simple chart document</li>
569 if fLoadVerySimpleChartAndSaveLocal() > 0 then
570 warnlog "Loading test document seems to have failed -> Check this out!"
573 '///+<li>Select chart using navigator</li>
575 '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
578 '///+<li>Convert chart to 3D (this will enable the Chart Floor)</li>
579 if NOT fConvertChartTo3D() then
580 warnlog "Conversion of chart to 3D failed -> Quit testcase"
584 '///+<li>Invoke Format::Chart Floor</li>
586 '///+<li>Goto tab-page Area</li>
588 active.SetPage TabArea
589 '///+<li>Check if tab-page Area exists</li>
591 call DialogTest ( TabArea )
593 '///+<li>Goto tab-page Transparency</li>
595 active.SetPage TabTransparency
596 '///+<li>Check if tab-page Transparency exists</li>
597 Kontext "TabTransparency"
598 call DialogTest ( TabTransparency )
600 '///+<li>Goto tab-page Borders</li>
602 active.SetPage TabFormatChartBorders
603 '///+<li>Check if tab-page Borders exists</li>
604 Kontext "TabFormatChartBorders"
605 call DialogTest ( TabFormatChartBorders )
607 '///+<li>Close dialog</li>
608 TabFormatChartBorders.Cancel
609 '///+<li>Close document</li>
610 Kontext "DocumentCalc"
611 DocumentCalc.TypeKeys "<Escape>"
616 '-------------------------------------------------------------
617 testcase tFormatChartArea
618 '///<u><b>Dialog test after invoking Format::Chart Area</b></u>
621 '///+<li>Load simple chart document</li>
622 if fLoadVerySimpleChartAndSaveLocal() > 0 then
623 warnlog "Loading test document seems to have failed -> Check this out!"
626 '///+<li>Select chart using navigator</li>
628 '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
631 '///+<li>Invoke Format::Chart Area</li>
633 '///+<li>Goto tab-page Transparency</li>
635 active.SetPage TabTransparency
636 '///+<li>Check if tab-page Transparency exists</li>
637 Kontext "TabTransparency"
638 call DialogTest ( TabTransparency )
640 '///+<li>Goto tab-page Borders</li>
642 active.SetPage TabFormatChartBorders
643 '///+<li>Check if tab-page Borders exists</li>
644 Kontext "TabFormatChartBorders"
645 call DialogTest ( TabFormatChartBorders )
647 '///+<li>Goto tab-page Area</li>
649 active.SetPage TabArea
650 '///+<li>Check if tab-page Area exists</li>
652 call DialogTest ( TabArea )
654 '///+<li>Close dialog</li>
656 '///+<li>Close document</li>
657 Kontext "DocumentCalc"
658 DocumentCalc.TypeKeys "<Escape>"
663 '-------------------------------------------------------------
664 testcase tFormatChartType
665 '///<u><b>Dialog test after invoking Format::Chart Type</b></u>
668 '///+<li>Load simple chart document</li>
669 if fLoadVerySimpleChartAndSaveLocal() > 0 then
670 warnlog "Loading test document seems to have failed -> Check this out!"
673 '///+<li>Select chart using navigator</li>
675 '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
678 '///+<li>Invoke Format::Chart Type</li>
680 '///+<li>Check if Chart Type dialog exists</li>
682 call DialogTest ( ChartType )
683 '///+<li>Change Chart type to LINE</li>
684 if fSetChartType( "line" ) > 0 then
685 warnlog "Something went wrong setting chart type to LINE -> Check this out! (Previous log may help you)"
689 '///+<li>Invoke Smooth Lines Properties</li>
690 if fInvokeSmoothLineProperties() > 0 then
691 warnlog "Something went wrong invoking Smooth Lines Properties -> Check this out! (Previous log may help you)"
695 '///+<li>Check if the Smooth Line Properties dialog exists</li>
696 Kontext "SmoothLineProperties"
697 call DialogTest ( SmoothLineProperties )
698 '///+<li>Close Smooth Lines Properties</li>
699 if fCloseSmoothLinePropertiesOK() > 0 then
700 warnlog "Something went wrong closing Smooth Lines Properties -> Check this out! (Previous log may help you)"
704 '///+<li>Close dialog</li>
707 '///+<li>Close document</li>
708 Kontext "DocumentCalc"
709 DocumentCalc.TypeKeys "<Escape>"
714 '-------------------------------------------------------------
715 testcase tFormatDataRanges
716 '///<u><b>Dialog test after invoking Format::Data Ranges</b></u>
719 '///+<li>Load simple chart document</li>
720 if fLoadVerySimpleChartAndSaveLocal() > 0 then
721 warnlog "Loading test document seems to have failed -> Check this out!"
724 '///+<li>Select chart using navigator</li>
726 '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
729 '///+<li>Invoke Format::Data Ranges</li>
731 '///+<li>Goto tab-page Data Range</li>
733 active.SetPage TabFormatDataRangesDataRange
734 '///+<li>Check if tab-page Data Range exists</li>
735 Kontext "TabFormatDataRangesDataRange"
736 call DialogTest ( TabFormatDataRangesDataRange )
737 qaErrorLog "Implode dialog using range select button when feature is implemented"
739 '///+<li>Goto tab-page Data Series</li>
741 active.SetPage TabFormatDataRangesDataSeries
742 '///+<li>Check if tab-page Data Series exists</li>
743 Kontext "TabFormatDataRangesDataSeries"
744 call DialogTest ( TabFormatDataRangesDataSeries )
746 qaErrorLog "Implode dialog using range select button when feature is implemented"
748 '///+<li>Close dialog</li>
749 TabFormatDataRangesDataSeries.Cancel
750 '///+<li>Close document</li>
751 Kontext "DocumentCalc"
752 DocumentCalc.TypeKeys "<Escape>"
757 '-------------------------------------------------------------
758 testcase tFormat3DView
759 '///<u><b>Dialog test after invoking Format::3D View</b></u>
762 '///+<li>Load simple chart document</li>
763 if fLoadVerySimpleChartAndSaveLocal() > 0 then
764 warnlog "Loading test document seems to have failed -> Check this out!"
767 '///+<li>Select chart using navigator</li>
769 '///+<li>Invoke Edit::Object::Edit to enter Inplace Mode</li>
772 '///+<li>Convert chart to 3D</li>
773 if NOT fConvertChartTo3D() then
774 warnlog "Conversion of chart to 3D failed -> Quit testcase"
778 '///+<li>Invoke Format::3D View</li>
780 '///+<li>Goto tab-page Perspective</li>
782 active.SetPage TabFormat3DViewGeometry
783 '///+<li>Check if tab-page Perspective exists</li>
784 Kontext "TabFormat3DViewGeometry"
785 call DialogTest ( TabFormat3DViewGeometry )
787 '///+<li>Goto tab-page Appearance</li>
789 active.SetPage TabFormat3DViewAppearance
790 '///+<li>Check if tab-page Appearance exists</li>
791 Kontext "TabFormat3DViewAppearance"
792 call DialogTest ( TabFormat3DViewAppearance )
794 '///+<li>Goto tab-page Illumination</li>
796 active.SetPage TabFormat3DViewIllumination
797 '///+<li>Check if tab-page Illumination exists</li>
798 Kontext "TabFormat3DViewIllumination"
799 call DialogTest ( TabFormat3DViewIllumination )
800 '///+<li>Click Color select button</li>
802 '///+<li>Check if Color dialog exists</li>
804 call DialogTest ( FarbeDLG )
805 '///+<li>Close dialog</li>
807 Kontext "TabFormat3DViewIllumination"
809 '///+<li>Click Ambient Light select button</li>
810 AmbientLightSelect.Click
811 '///+<li>Check if Color dialog exists</li>
813 call DialogTest ( FarbeDLG )
814 '///+<li>Close dialog</li>
817 '///+<li>Close dialog</li>
818 Kontext "TabFormat3DViewIllumination"
819 TabFormat3DViewIllumination.Cancel
820 '///+<li>Close document</li>
821 Kontext "DocumentCalc"
822 DocumentCalc.TypeKeys "<Escape>"
827 '-------------------------------------------------------------