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: help_browser.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 12:19:03 $
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 : joerg.skottke@sun.com
36 '* short description : global update/resource test
38 '\******************************************************************************
40 testcase tHelp_DialogTest
42 '///<h1>Update test for the main help window</h1>
46 printlog "- open the help"
48 '///+<li>Open Help</li>
51 warnlog( "Help not open, aborting test" )
53 if ( Active.exists( 2 ) ) then
54 printlog( "Msgbox: " & Active.getText() )
61 '///+<li>activate 'Content'-page</li>
62 brc = hSelectHelpTab( "content" )
63 call DialogTest( ContentPage )
65 '///+<li>activate 'Index'-page</li>
66 brc = hSelectHelpTab( "index" )
67 call DialogTest( IndexPage )
69 '///+<li>activate 'Find'-page</li>
70 brc = hSelectHelpTab( "find" )
71 call DialogTest( FindPage )
73 '///+<li>activate 'Bookmark'-page</li>
74 brc = hSelectHelpTab( "bookmarks" )
75 call DialogTest( BookmarksPage )
77 '///+<li>close help ( does not work correctly with testtool )</li>
78 Kontext "StarOfficeHelp"
84 '*******************************************************************************
86 testcase tHelp_ToolBar
88 '///<h1>Update test for the toolbar on the main Help window</h1>
93 '///+<li>Open Help</li>
96 warnlog( "Help not open, aborting test" )
98 if ( Active.exists( 2 ) ) then
99 printlog( "Msgbox: " & Active.getText() )
106 kontext "starofficehelp"
107 '///+<li>Index-button</li>
108 printlog "- Index -> on"
109 '///+<li>activate 'Index' ( => only the help-window must be shown )</li>
113 printlog "- Index -> off"
114 '///+<li>activate 'Index' ( => the full help-window must be shown )</li>
117 ' Backward- and Forward-button
118 '///+<li>open the 'Index'-page</li>
119 printlog "- activate 'Index'-page"
120 brc = hSelectHelpTab( "index" )
127 '///+<li>backward</li>
128 printlog "- backward"
132 '///+<li>forward</li>
137 '///+<li>first page</li>
138 printlog "- first page"
143 ' the print-dialog must be shown ( if direct-printing is activated => BUG )
144 '///+<li>close the print-dialog</li>
149 if Active.Exists ( 1 ) then
151 if Active.getRT() = 304 then
152 qaerrorlog "- Printing failed: Did you define a default printer?"
156 if ( druckenDlg.exists() ) then
157 printlog( "Printer dialog is still open, closing with cancel" )
165 if DruckenDlg.NotExists (2) then
166 warnlog "No print-dialog is open. => direct printing? - bug 93788!"
173 '///+<li>Set Bookmark</li>
174 printlog "- Set Bookmark"
179 '///+<li>close the 'add bookmark'-dialog</li>
180 kontext "addbookmark"
181 call DialogTest ( AddBookmark )
184 '///+<li>close help ( does not work correctly with testtool )</li>