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 2000, 2010 Oracle and/or its affiliates.
7 ' OpenOffice.org - a multi-platform office productivity suite
9 ' This file is part of OpenOffice.org.
11 ' OpenOffice.org is free software: you can redistribute it and/or modify
12 ' it under the terms of the GNU Lesser General Public License version 3
13 ' only, as published by the Free Software Foundation.
15 ' OpenOffice.org is distributed in the hope that it will be useful,
16 ' but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ' GNU Lesser General Public License version 3 for more details
19 ' (a copy is included in the LICENSE file that accompanied this code).
21 ' You should have received a copy of the GNU Lesser General Public License
22 ' version 3 along with OpenOffice.org. If not, see
23 ' <http://www.openoffice.org/license.html>
24 ' for a copy of the LGPLv3 License.
26 '/***********************************************************************
28 '* owner : oliver.craemer@oracle.com
30 '* short description : Resource Test - Window Menu
32 '************************************************************************
38 '\***********************************************************************
42 Printlog Chr(13) + "--------- Window Menu (c_upd_windowmenu.inc) ---------"
51 '-----------------------------------------------------------
53 testcase tWindowNewWindow
54 '///<u><b>Window – New Window</b></u>
56 Dim iDocumentcount as integer
57 Dim iDocumentclose as integer
59 '/// Verify that there is no document open
60 printlog " Verify that there is no document open"
61 iDocumentcount = getDocumentCount
62 If iDocumentcount >0 then
63 warnlog "There are " & iDocumentcount & " documents open, but there should be none. Closing these documents"
64 For iDocumentclose = 1 to iDocumentcount
68 '/// Opening new spreadsheet document for getting defined starting environment
69 printlog " Opening new spreadsheet document for getting defined starting environment"
71 '/// Open new window by 'Window – New Window'
72 printlog " Open new window by 'Window – New Window'"
74 '/// Count amount of windows (must be 2)
75 printlog " Count amount of windows (must be 2)"
76 If getDocumentCount <>2 then
77 warnlog "There should be 2 windows, but there are " & getDocumentCount
79 '/// Close new window by 'Window – Close Window'
80 printlog " Close new window by 'Window – Close Window'"
82 '/// Count amount of windows (must be one)
83 printlog " Count amount of windows (must be one)"
84 If getDocumentCount <>1 then
85 warnlog "There should be 1 window, but there are " & getDocumentCount
87 '/// Close starting document
88 printlog " Close starting document"
93 '-----------------------------------------------------------
96 '///<u><b>Window – Split</b></u>
98 '/// Open new Spreadsheet document
99 printlog " Open new Spreadsheet document"
102 printlog " Select cell E15"
103 Call fCalcSelectRange ("E15")
104 '/// Split window by 'Window – Split'
105 printlog " Split window by 'Window – Split'"
107 '/// Unsplit window by 'Window - Split'
108 printlog " Unsplit window by 'Window - Split'"
111 printlog " Close document"
116 '-----------------------------------------------------------
118 testcase tWindowFreeze
119 '///<u><b>Window – Freeze</b></u>
121 '/// Open new Spreadsheet document
122 printlog " Open new Spreadsheet document"
125 printlog " Select cell E15"
126 Call fCalcSelectRange ("E15")
127 '/// Split window by 'Window – Freeze'
128 printlog " Split window by 'Window – Freeze'"
130 '/// Unsplit window by 'Window - Freeze'
131 printlog " Unsplit window by 'Window - Freeze'"
134 printlog " Close document"
139 '-----------------------------------------------------------