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_upd_windowmenu.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-16 08:06:08 $
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 : oliver.craemer@sun.com
36 '* short description : Resource Test - Window Menu
38 '************************************************************************
44 '\***********************************************************************
48 Printlog Chr(13) + "--------- Window Menu (c_upd_windowmenu.inc) ---------"
57 '-----------------------------------------------------------
59 testcase tWindowNewWindow
60 '///<u><b>Window – New Window</b></u>
62 Dim iDocumentcount as integer
63 Dim iDocumentclose as integer
65 '/// Verify that there is no document open
66 printlog " Verify that there is no document open"
67 iDocumentcount = getDocumentCount
68 If iDocumentcount >0 then
69 warnlog "There are " & iDocumentcount & " documents open, but there should be none. Closing these documents"
70 For iDocumentclose = 1 to iDocumentcount
74 '/// Opening new spreadsheet document for getting defined starting environment
75 printlog " Opening new spreadsheet document for getting defined starting environment"
77 '/// Open new window by 'Window – New Window'
78 printlog " Open new window by 'Window – New Window'"
80 '/// Count amount of windows (must be 2)
81 printlog " Count amount of windows (must be 2)"
82 If getDocumentCount <>2 then
83 warnlog "There should be 2 windows, but there are " & getDocumentCount
85 '/// Close new window by 'Window – Close Window'
86 printlog " Close new window by 'Window – Close Window'"
88 '/// Count amount of windows (must be one)
89 printlog " Count amount of windows (must be one)"
90 If getDocumentCount <>1 then
91 warnlog "There should be 1 window, but there are " & getDocumentCount
93 '/// Close starting document
94 printlog " Close starting document"
99 '-----------------------------------------------------------
101 testcase tWindowSplit
102 '///<u><b>Window – Split</b></u>
104 '/// Open new Spreadsheet document
105 printlog " Open new Spreadsheet document"
108 printlog " Select cell E15"
109 Call fCalcSelectRange ("E15")
110 '/// Split window by 'Window – Split'
111 printlog " Split window by 'Window – Split'"
113 '/// Unsplit window by 'Window - Split'
114 printlog " Unsplit window by 'Window - Split'"
117 printlog " Close document"
122 '-----------------------------------------------------------
124 testcase tWindowFreeze
125 '///<u><b>Window – Freeze</b></u>
127 '/// Open new Spreadsheet document
128 printlog " Open new Spreadsheet document"
131 printlog " Select cell E15"
132 Call fCalcSelectRange ("E15")
133 '/// Split window by 'Window – Freeze'
134 printlog " Split window by 'Window – Freeze'"
136 '/// Unsplit window by 'Window - Freeze'
137 printlog " Unsplit window by 'Window - Freeze'"
140 printlog " Close document"
145 '-----------------------------------------------------------