2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
17 use_ok('installer::setupscript', qw(
18 add_installationobject_to_variables
19 add_lowercase_productname_setupscriptvariable
21 get_all_items_from_script
22 get_all_scriptvariables_from_installation_object
23 prepare_non_advertised_files
24 replace_all_setupscriptvariables_in_script
25 replace_preset_properties
26 resolve_lowercase_productname_setupscriptvariable
33 { gid => 'PREDEFINED_FOO' },
34 { gid => 'PREDEFINED_BAR' },
38 { FolderID => 'PREDEFINED_AUTOSTART' },
39 { FolderID => 'PREDEFINED_BAR' },
40 { FolderID => '456' },
43 my @expected_folders = (
45 { gid => 'PREDEFINED_FOO' },
46 { gid => 'PREDEFINED_BAR' },
50 gid => 'PREDEFINED_AUTOSTART'
54 add_predefined_folder(\@folderitems, \@folders);
56 is_deeply(\@folders, \@expected_folders);