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: meta-inf.inc,v $
13 '* last change: $Author: jsk $ $Date: 2008-06-19 09:02:10 $
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 : Case sensitive META-INF in packages
38 '\******************************************************************************
40 testcase tLowerCaseMetaInf
42 printlog( "The filename <META-INF> in lowercase letters may prevent installation" )
44 dim cExtensionName as string
45 cExtensionName = "lowercasemetainf.oxt"
47 dim cExtensionPath as string
48 cExtensionPath = gTesttoolPath & "extensions\optional\input\errors\"
49 cExtensionPath = cExtensionPath & cExtensionName
53 printlog( "Install extension: " & cExtensionPath )
54 irc = hExtensionAddGUI( cExtensionPath, "AcceptLicense,InstallForUser" )
58 printlog( "Check for unexpected messagebox" )
60 if ( Active.exists( 3 ) ) then
61 warnlog( "Extension should install after license has been displayed" )
62 printlog( Active.getText() )
64 printlog( "Trying to end test gracefully" )
67 printlog( "Close Extension Manager" )
68 kontext "PackageManager"
69 if ( PackageManager.exists( 3 ) ) then
70 PackageManager.close()
72 warnlog( "Cannot access Extension Manager" )
76 printlog( "No messagebox, good." )
79 printlog( "Remove extension" )
80 hExtensionRemoveGUI( cExtensionName )
84 warnlog( "The extension was not installed" )