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: c_so7_pp1_iz.inc,v $
13 '* last change: $Author: rt $ $Date: 2008-07-31 19:03:52 $
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.sievers@Sun.COM
36 '** short description : Test Issuezilla bug fixes
38 '************************************************************************
40 ' #1 tIZ19381 ' I/O error when OLE object is thrown out of undo/redo buffer
41 ' #1 tIZ21036 ' Crash after shifting cells with paste special
43 '\***********************************************************************
46 Dim sOutputFile as string
49 sOutputFile = convertpath(gOfficepath & "user/work/i19381.ods")
50 printlog "IssueZilla Task 19381"
52 '/// File / New / Spreadsheet
58 Kontext "DocumentCalc"
59 DocumentCalc.typekeys "1<RETURN>2<RETURN><UP>"
64 '/// On the chart wizard press OK button
65 if ChartWizard.Exists(2) then
66 printlog "Create chart"
70 warnlog "Chart wizard did not occour! Exiting test case."
74 Kontext "DocumentCalc"
76 DocumentCalc.typekeys "<Escape>"
78 '/// File Save As <i>gOfficepath</i>user/work/i19381.ods
79 if NOT hFileSaveAsWithFilterKill (sOutputFile, "calc8") then
80 warnlog "Saving test document localy failed -> Aborting"
88 '/// Open the saved document
89 if hFileOpen(sOutputFile) then
90 Kontext "DocumentCalc"
91 '/// Click into the chart
92 call gMouseClick(95,95)
93 Kontext "DocumentCalc"
94 '/// Press [F5] to open the Navigator
95 '/// Select the first Chart/OLE object in the navigator
101 Kontext "DocumentCalc"
102 '/// Type [ESCAPE] twice
103 DocumentCalc.TypeKeys "<ESCAPE>" , 2
107 Kontext "DocumentCalc"
108 '/// press [CTRL+S] to save the document again
109 DocumentCalc.typekeys "<MOD1 S>"
112 if Active.exists(2) then
113 if gPlatGroup = "w95" then
114 warnlog "REGRESSION! #i41751# - Saving after Cut&Paste of OLE fails on windows!"
116 warnlog "OOPS, found unexpected MsgBox -> Check this out!"
122 Kontext "DocumentCalc"
124 DocumentCalc.TypeKeys "<ESCAPE>"
126 call fCalcSelectRange("E42")
128 Kontext "DocumentCalc"
129 '/// Enter 1 and [RETURN] 21 times
130 '///+ as changes to get chart cut/paste out of the undo buffer
131 DocumentCalc.typekeys "1<Return>"
133 Kontext "DocumentCalc"
134 '/// Type [CTRL + S] to save the document again
135 DocumentCalc.typekeys "<MOD1 S>"
136 '/// check for error message
138 if Active.Exists(2) then
139 if Active.GetRT = 304 then
140 printlog Active.GetText
141 warnlog "REGRESSION! Issue 19381 seems to occur again!"
145 printlog "No message box is in the way!"
150 warnlog "It was not possible to open the saved document again!"
154 '-------------------------------------------------------------------------
158 printlog "IssueZilla Task 21036"
160 '/// open new document
164 '/// select a whole row (e.g. A1:IV1)
165 Kontext "DocumentCalc"
166 DocumentCalc.typekeys "<SHIFT MOD1 RIGHT>"
173 QAErrorLog "Is this a crash?? Please check it out!"
179 Kontext "DocumentCalc"
180 call fCalcSelectRange("A2")
182 Kontext "DocumentCalc"
183 '/// call edit->paste special
187 '/// check shift cells->right
188 Kontext "InhalteEinfuegenCalc"
192 InhalteEinfuegenCalc.OK
196 if Active.Exists(2) then
197 if Active.GetRT = 304 then
198 printlog Active.GetText
203 warnlog "No message box came up!"
209 printlog "OK, there are still " & GetDocumentCount & " documents open"
211 warnlog "Probably the office did crash -> #I21036#"