1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
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.
14#
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).
20#
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.
25#
26#*************************************************************************
27
28no-description.oxt, no-dependencies.oxt, empty-dependencies.oxt effectively have
29no dependencies and should thus install successfully.
30
31broken-dependencies.oxt contains a malformed description.xml and should thus
32display an error and not install.
33
34double-dependencies.oxt contains a description.xml with two dependencies
35elements.  This is not allowed by the spec but behaviour is unspecified.  In the
36current implementation, it combines the two elements, and thus finds two
37unsatisfied dependencies, displays the Unsatisfied Dependencies dialog and does
38not install.
39
40version21.oxt contains a dependency on OOo 2.1 (and should thus only install in
41OOo 2.1 or later); version21ns.oxt is the same, but with a different way of
42using XML namespaces; version21other.oxt additionally contains an unsatisfied
43dependency (and should thus not install in any OOo version).  version22.oxt
44contains a dependency on OOo 2.2 (and should thus only install in OOo 2.2 or
45later).  version23.oxt contains a dependency on OOo 2.3 (and should thus only
46install in OOo 2.3 or later).  version10000.oxt contains a dependency on the
47hypothetical OOo version 10000 (and should thus not install in any OOo version).
48versionempty.oxt contains an empty value attribute and versionnone.oxt lacks the
49value attribute; neither is allowed by the spec, but the current implementation
50treats both as pre OOo 2.1 versions (and the extensions should thus install in
51OOo 2.1 or later).
52
53maxversion30.oxt contains a maximal version dependency on OOo 3.0 (and should
54thus only install in OOo 3.0 or earlier, back to OOo 2.3, thanks to the
55additionally specified OpenOffice.org-minimal-version attribute).
56maxversion10000.oxt contains a maximal version dependency on the hypothetical
57OOo version 10000 (and should thus install in any OOo version 3.1 or later;
58OpenOffice.org-maximal-version was introduced in OOo 3.1, and no OpenOffice.org-
59minimal-version attribute is specified).  bad-minmaxversion.oxt contains a
60minimal version dependency on OOo 3.2 and a maximal version dependency on
61OOo 3.1 (and should thus not install in any OOo version).
62
63minattr22.oxt contains a (hypothetical, most probably never satisfied)
64UNSATISFIED dependency with an OpenOffice.org-minimal-version attribute of
65"2.2" (and should thus install in OOo 2.3 or later); minattr23.oxt is similar,
66but with an OpenOffice.org-minimal-version attribute of "2.3" (and should thus
67also install in OOo 2.3 or later); minattr24.oxt is similar, but with an
68OpenOffice.org-minimal-version attribute of "2.4" (and should thus only install
69in OOo 2.4 or later).
70
71All of the following testcases should result in the Unsatisfied Dependencies
72dialog being displayed and the extension not being installed:
73
74unknown-dependency.oxt contains a dependency without a name attribute, and
75should thus display "Unknown" (localized).
76
77funny-dependency.oxt, many-dependencies.oxt contain somewhat extreme input.
78
79license-dependency.oxt contains both a license to be accepted by the user and
80dependencies.  What is important here is that the Unsatisfied Dependencies
81dialog is displayed, but not the license (as installation aborts as soon as
82unsatisfied dependencies are found).
83