summaryrefslogtreecommitdiff
path: root/testautomation/graphics/optional
diff options
context:
space:
mode:
authorJoerg Skottke [jsk] <jsk@openoffice.org>2009-11-06 09:52:37 +0100
committerJoerg Skottke [jsk] <jsk@openoffice.org>2009-11-06 09:52:37 +0100
commitb9dc30fe942d78a3a4ae40acc298117e79a34cd0 (patch)
tree04c51fe6eb2ea46f7f169f2ddf5d509cd07ee4b3 /testautomation/graphics/optional
parent61c0b879dbb192e5a2044ff95d9b80eda49a0825 (diff)
printerpullpages: #i106289# - completely remove graphics print test as it duplicates parts of the global resource test
Diffstat (limited to 'testautomation/graphics/optional')
-rwxr-xr-xtestautomation/graphics/optional/g_print.bas64
-rwxr-xr-xtestautomation/graphics/optional/includes/global/g_print.inc112
2 files changed, 0 insertions, 176 deletions
diff --git a/testautomation/graphics/optional/g_print.bas b/testautomation/graphics/optional/g_print.bas
deleted file mode 100755
index 73ec23a9fef6..000000000000
--- a/testautomation/graphics/optional/g_print.bas
+++ /dev/null
@@ -1,64 +0,0 @@
-'encoding UTF-8 Do not remove or change this line!
-'**************************************************************************
-'* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-'*
-'* Copyright 2008 by Sun Microsystems, Inc.
-'*
-'* OpenOffice.org - a multi-platform office productivity suite
-'*
-'* $RCSfile: g_print.bas,v $
-'*
-'* $Revision: 1.1 $
-'*
-'* last change: $Author: jsi $ $Date: 2008-06-16 10:42:37 $
-'*
-'* This file is part of OpenOffice.org.
-'*
-'* OpenOffice.org is free software: you can redistribute it and/or modify
-'* it under the terms of the GNU Lesser General Public License version 3
-'* only, as published by the Free Software Foundation.
-'*
-'* OpenOffice.org is distributed in the hope that it will be useful,
-'* but WITHOUT ANY WARRANTY; without even the implied warranty of
-'* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-'* GNU Lesser General Public License version 3 for more details
-'* (a copy is included in the LICENSE file that accompanied this code).
-'*
-'* You should have received a copy of the GNU Lesser General Public License
-'* version 3 along with OpenOffice.org. If not, see
-'* <http://www.openoffice.org/license.html>
-'* for a copy of the LGPLv3 License.
-'*
-'/************************************************************************
-'*
-'* Owner : wolfram.garten@sun.com
-'*
-'* short description : Graphics Function: Print
-'*
-'\******************************************************************
-
-public glLocale (15*20) as string
-
-sub main
- PrintLog "------------------------- g_print test -------------------------"
- Call hStatusIn ( "Graphics","g_print.bas")
-
- use "graphics\tools\id_tools.inc"
- use "graphics\optional\includes\global\g_print.inc"
-
- PrintLog "-------------------------" + gApplication + "-------------------"
- call tFilePrint
-
- gApplication = "DRAW"
- PrintLog "-------------------------" + gApplication + "-------------------"
- call tFilePrint
-
- Call hStatusOut
-end sub
-
-sub LoadIncludeFiles
- use "global\system\includes\master.inc"
- use "global\system\includes\gvariabl.inc"
- gApplication = "IMPRESS"
- Call GetUseFiles
-end sub
diff --git a/testautomation/graphics/optional/includes/global/g_print.inc b/testautomation/graphics/optional/includes/global/g_print.inc
deleted file mode 100755
index 8723ef77e0e0..000000000000
--- a/testautomation/graphics/optional/includes/global/g_print.inc
+++ /dev/null
@@ -1,112 +0,0 @@
-'encoding UTF-8 Do not remove or change this line!
-'**************************************************************************
-'* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-'*
-'* Copyright 2008 by Sun Microsystems, Inc.
-'*
-'* OpenOffice.org - a multi-platform office productivity suite
-'*
-'* $RCSfile: g_print.inc,v $
-'*
-'* $Revision: 1.1 $
-'*
-'* last change: $Author: jsi $ $Date: 2008-06-16 10:42:40 $
-'*
-'* This file is part of OpenOffice.org.
-'*
-'* OpenOffice.org is free software: you can redistribute it and/or modify
-'* it under the terms of the GNU Lesser General Public License version 3
-'* only, as published by the Free Software Foundation.
-'*
-'* OpenOffice.org is distributed in the hope that it will be useful,
-'* but WITHOUT ANY WARRANTY; without even the implied warranty of
-'* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-'* GNU Lesser General Public License version 3 for more details
-'* (a copy is included in the LICENSE file that accompanied this code).
-'*
-'* You should have received a copy of the GNU Lesser General Public License
-'* version 3 along with OpenOffice.org. If not, see
-'* <http://www.openoffice.org/license.html>
-'* for a copy of the LGPLv3 License.
-'*
-'/************************************************************************
-'*
-'* Owner : wolfram.garten@sun.com
-'*
-'* short description :
-'*
-'**************************************************************************************
-' #1 tFilePrint
-'\*************************************************************************************
-
-testcase tFilePrint
- Call hNewDocument
-
- printlog "Inserting testtext."
- hTextrahmenErstellen ("This is an automated print test with testtool for GRAPHICS ",90,90,80,10)
- hTextrahmenErstellen ("Version : "+ gVersionsnummer + " / " + gLanguage,80,90,70,10)
- hTextrahmenErstellen ("Date / Time : "+ Date + " / " + Time,70,90,60,10)
- hTextrahmenErstellen ("Machine / User: " + gPCName + " " + gUser,60,90,50,10)
-
- printlog "Opening print Dialog."
- FilePrint
- kontext
- if active.exists(2) then
- active.ok
- qaerrorlog "There is no printer available - please install one on your system!"
- endif
- sleep 2
-
- printlog "Opening Draw Tabpage."
- Kontext "Printing"
- PrintingTabControl.setPage( TabApplication )
- kontext "TabApplication"
-
- printlog "Checking Boxes and Buttons..."
- SlideName.Check
- DateAndTime.Check
- if (gApplication = "IMPRESS") then
- HiddenPages.Check
- endif
- OriginalColors.Check
- Grayscale.Check
- BlackAndWhite.Check
- OriginalSize.Check
- FitToPage.Check
- MultiplePages.Check
- TilePaper.Check
-
- printlog "Changing Tabpage and back."
- kontext "printing"
- PrintingTabControl.SetPage ( TabPrintGeneral )
- kontext "TabPrintGeneral"
-
- kontext "printing"
- PrintingTabControl.SetPage ( TabApplication )
- kontext "TabApplication"
-
- printlog "Checking state of buttons and boxes.."
- if NOT ( SlideName.isChecked ) then
- warnlog( "Slide Name is not checked." )
- endif
- if NOT ( DateAndTime.isChecked ) then
- warnlog( "Date and Time is not checked." )
- endif
- if (gApplication = "IMPRESS") then
- if NOT ( HiddenPages.isChecked ) then
- warnlog( "Hidden Pages is not checked." )
- endif
- endif
- if NOT ( BlackAndWhite.isChecked ) then
- warnlog( "Black And White is not checked." )
- endif
- if NOT ( TilePaper.isChecked ) then
- warnlog( "Tile Paper is not checked." )
- endif
-
- kontext "printing"
- Printing.Cancel()
-
- Call hCloseDocument
-endcase
-