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: id_009.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 10:42:41 $
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 : wolfram.garten@sun.com
36 '* short description : Testcases to test the Help-Menu.
38 '***********************************************************************************
41 ' #1 tmHelpExtendedTips
42 ' #1 tmHelpAboutStarOffice
44 ' #1 tCheckIfTheHelpExists
45 '\**********************************************************************************
47 testcase tmHelpHelpAgent
53 HelpHelpAgent ' it's just a switch
60 '...---....---.-.-.-.-.....---......--.-.-.-.....----..-........................---.......
73 '...---....---.-.-.-.-.....---......--.-.-.-.....----..-........................---.......
75 testcase tmHelpExtendedTips
86 '...---....---.-.-.-.-.....---......--.-.-.-.....----..-........................---.......
88 testcase tmHelpAboutStarOffice
93 Kontext "UeberStarMath"
94 DialogTest (UeberStarMath)
100 '...---....---.-.-.-.-.....---......--.-.-.-.....----..-........................---.......
102 testcase tmHelpContents
103 goto endsub '"#i84486# - tmHelpContents outcommented due to crash."
109 kontext "StarOfficeHelp"
110 if Not StarOfficeHelp.Exists then
111 Warnlog "Help is not up!"
113 Printlog "HelpAbout: '" + HelpAbout.GetItemCount +"'"
114 '################ left half ################
115 TabControl.SetPage ContentPage
116 Printlog "SearchContent: '" + SearchContent.GetItemCount + "'"
117 TabControl.SetPage IndexPage
118 Printlog "SearchIndex: '" + SearchIndex.GetItemCount + "'"
122 TabControl.SetPage FindPage
123 Printlog "SearchFind: '" + SearchFind.GetItemCount + "'"
124 if SearchFind.GetSelText = "" then
125 if FindButton.IsEnabled then
126 warnlog " The Find-Button should have been inactive, but was active."
129 warnlog " The Search-Text-Field shouldn't contain any text. But contained: " + SearchFind.GetSelText
131 SearchFind.SetText "Doobbidedooo"
134 if (active.exists (2) )then
135 Printlog "active came up: '" + active.gettext + "'"
138 kontext "StarOfficeHelp"
140 FindInHeadingsOnly.Check
141 Printlog "Result: '" + Result.GetItemCount + "'"
143 TabControl.SetPage BookmarksPage
144 Printlog "Bookmarks: '" + Bookmarks.GetItemCount + "'"
145 DisplayBookmarks.Click
146 '################ right half ################
147 '################ toolbar ################
163 if Active.Exists( 2 ) then
164 qaerrorlog "No default printer defined: " & Active.GetText
169 if DruckenDLG.Exists then
172 warnlog "the Print-Dialogue didnt appear."
178 Kontext "AddBookmark"
179 Printlog "Bookmarkname: '" + Bookmarkname.GetText + "'"
182 '################ help display ################
183 kontext "HelpContent"
184 HelpContent.OpenContextMenu
187 Printlog " i: " + hMenuItemGetCount
189 '################ right scroolbar ################
190 kontext "HelpContent"
191 if HelpContentUP.IsVisible then
195 if HelpContentNAVIGATION.IsVisible then
196 HelpContentNAVIGATION.Click
199 kontext "NavigationsFenster"
200 NavigationsFenster.Close
202 kontext "HelpContent"
203 if HelpContentDOWN.IsVisible then
204 HelpContentDOWN.Click
207 kontext "StarOfficeHelp"
208 Printlog "trying to close the help now"
210 StarOfficeHelp.TypeKeys "<Mod1 F4>" ' strg F4 supported since bug #103586#
212 Warnlog "failed to close the help window :-("
214 kontext "StarOfficeHelp"
215 if StarOfficeHelp.Exists then
216 warnlog "Help still up!"
222 '...---....---.-.-.-.-.....---......--.-.-.-.....----..-........................---.......
224 testcase tCheckIfTheHelpExists
227 kontext "HelpContent"
229 HelpContent.TypeKeys "<MOD1 A>"
231 HelpContent.TypeKeys "<MOD1 C>"
232 if GetClipBoard = "" then
233 Warnlog " No content in the Help-Content -view."
235 Printlog " The Help-Content -view contained content. Good."
237 kontext "StarOfficeHelp"
239 StarOfficeHelp.TypeKeys "<MOD1 F4>"
241 Warnlog " Failed to close the help window :-("
243 kontext "StarOfficeHelp"
244 if StarOfficeHelp.Exists then
245 warnlog "Help was still visible!"
249 endcase 'tCheckIfTheHelpExists