merge the formfield patch from ooo-build
[ooovba.git] / testautomation / framework / optional / f_filedlg_folder_navigation.bas
blob3f65731477c165194293eff20310858af1c99e8f
1 '**************************************************************************
2 '* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3 '*
4 '* Copyright 2008 by Sun Microsystems, Inc.
5 '*
6 '* OpenOffice.org - a multi-platform office productivity suite
7 '*
8 '* $RCSfile: f_filedlg_folder_navigation.bas,v $
9 '*
10 '* $Revision: 1.2 $
12 '* last change: $Author: jsk $ $Date: 2008-06-20 08:03:52 $
14 '* This file is part of OpenOffice.org.
16 '* OpenOffice.org is free software: you can redistribute it and/or modify
17 '* it under the terms of the GNU Lesser General Public License version 3
18 '* only, as published by the Free Software Foundation.
20 '* OpenOffice.org is distributed in the hope that it will be useful,
21 '* but WITHOUT ANY WARRANTY; without even the implied warranty of
22 '* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 '* GNU Lesser General Public License version 3 for more details
24 '* (a copy is included in the LICENSE file that accompanied this code).
26 '* You should have received a copy of the GNU Lesser General Public License
27 '* version 3 along with OpenOffice.org. If not, see
28 '* <http://www.openoffice.org/license.html>
29 '* for a copy of the LGPLv3 License.
31 '/************************************************************************
32 ' **
33 ' ** owner : joerg.skottke@sun.com
34 ' **
35 ' ** short description : check the internal file dialog (Folders/Navigation)
36 ' **
37 '\******************************************************************************
39 sub main
41 use "framework\optional\includes\filedlg_folders1.inc"
42 use "framework\optional\includes\filedlg_folders2.inc"
43 use "framework\optional\includes\filedlg_folders3.inc"
44 use "framework\optional\includes\filedlg_folders4.inc"
45 use "framework\optional\includes\filedlg_folders5.inc"
46 use "framework\optional\includes\filedlg_folders6.inc"
47 use "framework\optional\includes\filedlg_folders7.inc"
49 Call hStatusIn ( "framework", "f_filedlg_folder_navigation.bas" )
51 call tFolder1 ' create folders with different names ('new folder'-button)
52 call tFolder2 ' create folders with same names ( 'new folder'-button )
53 call tFolder3 ' create folders with lower and upper cases in
54 ' local-file-system ('new folder'-button)
56 call tUpOneLevel1 ' click 'up one level' 10 times and check the results
57 call tUpOneLevel2 ' go up one level with '..' 10 times and check the results
58 call tUpOneLevel3 ' jump to the root with '/' or '\' and check the result
59 call tUpOneLevel4 ' check the items under 'up one level'-button
61 Call hStatusOut
63 end sub
65 ' ****************************************
67 sub LoadIncludeFiles
69 use "global\system\includes\master.inc"
70 use "global\system\includes\gvariabl.inc"
72 use "global\tools\includes\optional\t_stringtools.inc"
74 use "framework\optional\includes\filedlg_tools.inc"
75 use "framework\tools\includes\fileoperations.inc"
77 gApplication = "WRITER"
78 Call GetUseFiles
80 end sub