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: standard_toolbar_6.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 test (Standardbar)
38 '\***************************************************************************
40 testcase tStandardBar_6
42 '///<h1>Update test: "New-Button" on Standard Bar for all applications</h1>
45 '///+<li>Disable the Impress Autopilot</li>
46 hUseImpressAutopilot( false )
48 gApplication = "WRITER"
50 '///+<li>Check the 'New'-menu-button in Standardbar in each application</li>
51 printlog "Check the 'New'-menu-button in Standardbar in each application"
52 printlog "- click on menu-button -> open a new document as same document-type"
54 '///+<li>Open a new writer doc</li>
56 gApplication = "WRITER"
63 '///+<li>Check if the new document is a writer-doc</li>
64 kontext "documentwriter"
65 DocumentWriter.TypeKeys( "Hallo" )
67 '///+<li>Close both new docs</li>
71 '///+<li>Open a new calc doc</li>
76 '///+<li>Click on 'new'</li>
80 '///+<li>Check if the new document is a calc-doc</li>
81 kontext "documentcalc"
82 DocumentCalc.TypeKeys( "Hallo" )
84 '///+<li>Close both new docs</li>
88 '///+<li>Open a new draw doc</li>
94 '///+<li>Click on 'new'</li>
97 '///+<li>Check if the new document is a draw-doc</li>
98 gMouseClick ( 50, 50 )
100 '///+<li>Close both new docs</li>
104 '///+<li>Open a new impress doc</li>
105 printlog " - Impress"
106 gApplication = "IMPRESS"
109 kontext "standardbar"
110 '///+<li>Click on 'new'</li>
113 '///+<li>Check if the new document is a impress-doc</li>
114 gMouseClick ( 50, 50 )
116 '///+<li>Close both new docs</li>
120 '///+<li>Open a new HTML doc</li>
121 printlog " - HTML-document"
122 gApplication = "HTML"
126 kontext "standardbar"
128 '///+<li>Check if the new document is a HTML-doc</li>
130 kontext "documentwriter"
131 DocumentWriter.TypeKeys( "Hallo" )
133 '///+<li>Close both new docs</li>
137 '///+<li>Open a new master document</li>
138 printlog " - Master-document"
139 gApplication = "MASTERDOCUMENT"
141 '///+<li>Click on "new"</li>
143 kontext "standardbar"
145 '///+<li>Check if the new document is a master doc</li>
147 kontext "documentwriter"
148 DocumentWriter.TypeKeys( "Hallo" )
150 '///+<li>Close the navigator</li>
151 '///+<li>Close the document</li>
155 '///+<li>Close the navigator</li>
156 '///+<li>Close the second document</li>
160 '///+<li>Open a new math document</li>
162 gApplication = "MATH"
164 '///+<li>Click on 'new'</li>
166 kontext "standardbar"
169 '///+<li>Check if the new document is a math document</li>
170 SchreibenInMathdok "a over b"
172 '///+<li>Close both new documents</li>