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 2008 by Sun Microsystems, Inc.
7 '* OpenOffice.org - a multi-platform office productivity suite
9 '* $RCSfile: m_004_.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 11:51:23 $
15 '* This file is part of OpenOffice.org.
17 '* OpenOffice.org is free software: you can redistribute it and/or modify
18 '* it under the terms of the GNU Lesser General Public License version 3
19 '* only, as published by the Free Software Foundation.
21 '* OpenOffice.org is distributed in the hope that it will be useful,
22 '* but WITHOUT ANY WARRANTY; without even the implied warranty of
23 '* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 '* GNU Lesser General Public License version 3 for more details
25 '* (a copy is included in the LICENSE file that accompanied this code).
27 '* You should have received a copy of the GNU Lesser General Public License
28 '* version 3 along with OpenOffice.org. If not, see
29 '* <http://www.openoffice.org/license.html>
30 '* for a copy of the LGPLv3 License.
32 '/************************************************************************
34 '* Owner : thorsten.bosbach@sun.com
36 '* short description :
38 '\*****************************************************************
41 Printlog Chr(13)+"-- Format Menu m_004_ --"
53 '/// open application ///'
56 '/// Format->Fonts ///'
58 Kontext "Schriftarten"
59 Call DialogTest (Schriftarten)
60 '/// select every entry from 'Modify' and do ///'
62 iCount = hMenuItemGetCount
64 warnlog "There are Entries missing; expected: '7'; found: '" + iCount +"'"
68 printlog " Font for Menuitem Nr. " & i
73 Call DialogTest (Schriften)
76 '/// check checkbox 'bold' ///'
78 '/// check checkbox 'italic' ///'
81 warnlog "fett and/or kursiv checkbox doesn't exist"
84 if (fett.isvisible OR kursiv.isVisible) then
85 warnlog "fett and/or kursiv checkbox exists"
89 '/// cancel dialog 'fonts' ///'
92 Kontext "Schriftarten"
95 Kontext "Schriftarten"
97 '/// cklick button 'default' ///'
100 if active.exists (5) then
101 Active.No ' should changes ybe saved as default (yes/no)
103 warnlog "should changes be saved as default (yes/no) failed :-("
105 Kontext "Schriftarten"
106 '/// cancel dialog 'fonts' ///'
108 '/// close document ///'
112 testcase tFormatFontsize
113 '/// open application ///'
115 '/// Format->FontSize ///'
117 Kontext "Schriftgroessen"
118 Call DialogTest (Schriftgroessen)
119 '/// press button MORE on 'Base size' ///'
121 '/// press button MORE on 'Text' ///'
123 '/// press button MORE on 'Indexes' ///'
125 '/// press button MORE on 'Functions' ///'
127 '/// press button MORE on 'Operators' ///'
129 '/// press button MORE on 'Limits' ///'
132 '/// press button 'default' ///'
135 if active.exists (5) then
136 Active.No ' should changes ybe saved as default (yes/no)
138 warnlog "should changes be saved as default (yes/no) failed :-("
140 Kontext "Schriftgroessen"
141 '/// cancel dialog 'Font Sizes' ///'
142 Schriftgroessen.Cancel
144 '/// close document ///'
148 testcase tFormatDistance
150 '/// open application ///'
152 '/// Format->Spacing ///'
155 Call DialogTest (Spacing)
158 for i=1 to hMenuItemGetCount
161 Call DialogTest (Spacing,i)
164 '/// select 'Spacing' from Category menu ///'
165 '///+ click MORE button on '' ///'
167 '///+ click MORE button on '' ///'
169 '///+ click MORE button on '' ///'
172 '/// select 'Indexing' from Category menu ///'
173 '///+ click MORE button on '' ///'
175 '///+ click MORE button on '' ///'
178 '/// select 'Fractions' from Category menu ///'
179 '///+ click MORE button on '' ///'
181 '///+ click MORE button on '' ///'
184 '/// select 'Fraction bars' from Category menu ///'
185 '///+ click MORE button on '' ///'
187 '///+ click MORE button on '' ///'
190 '/// select 'Limits' from Category menu ///'
191 '///+ click MORE button on '' ///'
193 '///+ click MORE button on '' ///'
196 '/// select 'Brackets' from Category menu ///'
197 '///+ click MORE button on '' ///'
199 '///+ click MORE button on '' ///'
201 ScaleAllBrackets.Check
202 '///+ click MORE button on '' ///'
205 '/// select 'Matrixes' from Category menu ///'
206 '///+ click MORE button on '' ///'
207 MatrixLineSpacing.More
208 '///+ click MORE button on '' ///'
211 '/// select 'Symbols' from Category menu ///'
212 '///+ click MORE button on '' ///'
214 '///+ click MORE button on '' ///'
217 '/// select 'Operators' from Category menu ///'
218 '///+ click MORE button on '' ///'
219 OperatorsExcessSize.More
220 '///+ click MORE button on '' ///'
221 OperatorsSpacing.More
223 '/// select 'Borders' from Category menu ///'
224 '///+ click MORE button on '' ///'
226 '///+ click MORE button on '' ///'
228 '///+ click MORE button on '' ///'
230 '///+ click MORE button on '' ///'
233 warnlog "More items than expected :-("
241 if active.exists (5) then
242 Active.No ' should changes ybe saved as default (yes/no)
244 warnlog "should changes be saved as default (yes/no) failed :-("
247 '/// cancel dialog 'Spacing' ///'
250 '/// close document ///'
254 testcase tFormatAlignment
255 '/// open application ///'
257 '/// Format->Alignment ///'
259 Kontext "Ausrichtung"
260 Call DialogTest (Ausrichtung)
261 '/// check Radiobutton 'Left' ///'
263 '/// check Radiobutton 'Centered' ///'
265 '/// check Radiobutton 'Right' ///'
267 '/// check Button 'Default' ///'
270 if active.exists (5) then
271 Active.No ' should changes ybe saved as default (yes/no)
273 warnlog "should changes be saved as default (yes/no) failed :-("
275 Kontext "Ausrichtung"
277 '/// close document ///'
281 testcase tFormatTextmode
282 '/// open application ///'
284 '/// Format->Text Mode ///'
287 '/// Format->Text Mode ///'
289 '/// close document ///'