1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22no-description.oxt, no-dependencies.oxt, empty-dependencies.oxt effectively have
23no dependencies and should thus install successfully.
24
25broken-dependencies.oxt contains a malformed description.xml and should thus
26display an error and not install.
27
28double-dependencies.oxt contains a description.xml with two dependencies
29elements.  This is not allowed by the spec but behaviour is unspecified.  In the
30current implementation, it combines the two elements, and thus finds two
31unsatisfied dependencies, displays the Unsatisfied Dependencies dialog and does
32not install.
33
34version21.oxt contains a dependency on OOo 2.1 (and should thus only install in
35OOo 2.1 or later); version21ns.oxt is the same, but with a different way of
36using XML namespaces; version21other.oxt additionally contains an unsatisfied
37dependency (and should thus not install in any OOo version).  version22.oxt
38contains a dependency on OOo 2.2 (and should thus only install in OOo 2.2 or
39later).  version23.oxt contains a dependency on OOo 2.3 (and should thus only
40install in OOo 2.3 or later).  version10000.oxt contains a dependency on the
41hypothetical OOo version 10000 (and should thus not install in any OOo version).
42versionempty.oxt contains an empty value attribute and versionnone.oxt lacks the
43value attribute; neither is allowed by the spec, but the current implementation
44treats both as pre OOo 2.1 versions (and the extensions should thus install in
45OOo 2.1 or later).
46
47maxversion30.oxt contains a maximal version dependency on OOo 3.0 (and should
48thus only install in OOo 3.0 or earlier, back to OOo 2.3, thanks to the
49additionally specified OpenOffice.org-minimal-version attribute).
50maxversion10000.oxt contains a maximal version dependency on the hypothetical
51OOo version 10000 (and should thus install in any OOo version 3.1 or later;
52OpenOffice.org-maximal-version was introduced in OOo 3.1, and no OpenOffice.org-
53minimal-version attribute is specified).  bad-minmaxversion.oxt contains a
54minimal version dependency on OOo 3.2 and a maximal version dependency on
55OOo 3.1 (and should thus not install in any OOo version).
56
57minattr22.oxt contains a (hypothetical, most probably never satisfied)
58UNSATISFIED dependency with an OpenOffice.org-minimal-version attribute of
59"2.2" (and should thus install in OOo 2.3 or later); minattr23.oxt is similar,
60but with an OpenOffice.org-minimal-version attribute of "2.3" (and should thus
61also install in OOo 2.3 or later); minattr24.oxt is similar, but with an
62OpenOffice.org-minimal-version attribute of "2.4" (and should thus only install
63in OOo 2.4 or later).
64
65All of the following testcases should result in the Unsatisfied Dependencies
66dialog being displayed and the extension not being installed:
67
68unknown-dependency.oxt contains a dependency without a name attribute, and
69should thus display "Unknown" (localized).
70
71funny-dependency.oxt, many-dependencies.oxt contain somewhat extreme input.
72
73license-dependency.oxt contains both a license to be accepted by the user and
74dependencies.  What is important here is that the Unsatisfied Dependencies
75dialog is displayed, but not the license (as installation aborts as soon as
76unsatisfied dependencies are found).
77