'encoding UTF-8 Do not remove or change this line! '************************************************************************* ' ' Licensed to the Apache Software Foundation (ASF) under one ' or more contributor license agreements. See the NOTICE file ' distributed with this work for additional information ' regarding copyright ownership. The ASF licenses this file ' to you under the Apache License, Version 2.0 (the ' "License"); you may not use this file except in compliance ' with the License. You may obtain a copy of the License at ' ' http://www.apache.org/licenses/LICENSE-2.0 ' ' Unless required by applicable law or agreed to in writing, ' software distributed under the License is distributed on an ' "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ' KIND, either express or implied. See the License for the ' specific language governing permissions and limitations ' under the License. ' '************************************************************************* '* '* short description : Chart resource test - Menu VIEW '* '************************************************************************ '* ' #1 tViewToolbars ' #1 tViewToolbarsCustomize ' #1 tViewFullScreen '* '\************************************************************************ testcase tViewToolbars '///Check invocation of View::Toolbars::* '/// Load simple chart document and save it in user's work dorectory if fLoadVerySimpleChartAndSaveLocal() > 0 then warnlog "Loading test document seems to have failed -> Check this out!" goto endsub endif '/// Select chart using the navigator call fSelectFirstOLE '/// Edit / Object / Edit EditObjectEdit '/// Convert chart to 3D if NOT fConvertChartTo3D() then warnlog "Conversion of chart to 3D failed -> Quit testcase" Call hCloseDocument goto endsub else printlog "Converting chart into 3D was successful." endif Kontext "Standardbar" if Standardbar.Exists then '/// View / Toolbars / Standard ViewToolbarsStandard Kontext "Standardbar" '/// Verifying that the toolbar 'Standard' is disabled if Standardbar.Exists then QAErrorLog "#i72537 - Disabling 'Standard' toolbar does not work." Call hCloseDocument goto endsub else '/// Enabling the toolbar again ViewToolbarsStandard end if else warnlog "'Standard' toolbar was not visible by default as expected!" end if Kontext "Toolbar" if Toolbar.Exists then '/// View / Toolbars / Formatting ViewToolbarsTools Kontext "Toolbar" '/// Verifying that the toolbar 'Formatting' is disabled if Toolbar.Exists then QAErrorLog "#i72537 - Disabling 'Formatting' toolbar does not work." Call hCloseDocument goto endsub else '/// Enabling the toolbar again ViewToolbarsTools end if else warnlog "'Standard' toolbar was not visible by default as expected!" end if '/// Close document Call hCloseDocument endcase '------------------------------------------------------------- testcase tViewToolbarsCustomize '///Check Dialog after invocation of View::Toolbars::Customize '/// endcase '------------------------------------------------------------- testcase tViewFullScreen '///Check invocation of View::Fullscren '/// endcase ' '----------------------------------------------------------- '