diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-11-02 16:41:35 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-11-02 16:41:35 +0000 |
commit | 1c91ee139860ebaf62ecabd9ed559bf153cc200f (patch) | |
tree | b63e43c0f09ad547792aaf8efe39b957c23433ca /qadevOOo/runner | |
parent | 29f2e04cb256066bdd511294f53210f47206ceca (diff) |
INTEGRATION: CWS qadev24 (1.5.4); FILE MERGED
2005/09/30 10:26:54 lla 1.5.4.5: #i52275# handle NoOffice Parameter
2005/09/27 11:20:24 lla 1.5.4.4: #i52275# PerformanceContainer
2005/09/19 22:03:41 cn 1.5.4.3: RESYNC: (1.5-1.6); FILE MERGED
2005/08/26 07:14:06 lla 1.5.4.2: #124348# filter some pictures out
2005/08/08 12:33:40 lla 1.5.4.1: #124348# add the feature to leave out files
Diffstat (limited to 'qadevOOo/runner')
-rw-r--r-- | qadevOOo/runner/convwatch/GraphicalTestArguments.java | 62 |
1 files changed, 60 insertions, 2 deletions
diff --git a/qadevOOo/runner/convwatch/GraphicalTestArguments.java b/qadevOOo/runner/convwatch/GraphicalTestArguments.java index 8773b7bcc93e..88e6f218b1b3 100644 --- a/qadevOOo/runner/convwatch/GraphicalTestArguments.java +++ b/qadevOOo/runner/convwatch/GraphicalTestArguments.java @@ -4,9 +4,9 @@ * * $RCSfile: GraphicalTestArguments.java,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: rt $ $Date: 2005-09-08 17:13:00 $ + * last change: $Author: kz $ $Date: 2005-11-02 17:41:35 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -111,6 +111,8 @@ public class GraphicalTestArguments boolean m_bDebugMode = false; + String m_sLeaveOutNames = null; + // CONSTRUCTOR private GraphicalTestArguments(){} @@ -250,6 +252,29 @@ public class GraphicalTestArguments { m_bWithBorderMove = false; } + + String sLeaveOutNames = (String)param.get(PropertyName.DOC_COMPARATOR_LEAVE_OUT_FILES); + if (sLeaveOutNames != null) + { + m_sLeaveOutNames = sLeaveOutNames; + } + } + + public boolean checkIfUsable(String _sName) + { + // @todo + // check if the name is in the leave out list and then return 'false' + if (_sName.toLowerCase().endsWith(".jpg") || + _sName.toLowerCase().endsWith(".png") || + _sName.toLowerCase().endsWith(".gif") || + _sName.toLowerCase().endsWith(".bmp") || + _sName.toLowerCase().endsWith(".prn") || + _sName.toLowerCase().endsWith(".ps")) + { + return false; + } + + return true; } static void showInternalFilterName(String _sFilterName, XMultiServiceFactory _xMSF) @@ -366,6 +391,11 @@ public class GraphicalTestArguments { return false; } + // just a hack + if (pathname.getName().endsWith("_")) + { + return false; + } return true; } }; @@ -494,6 +524,19 @@ public class GraphicalTestArguments return sBuildID; } + public boolean shouldOfficeStart() + { + String sNoOffice = (String)m_aCurrentParams.get( "NoOffice" ); + if (sNoOffice != null) + { + if (sNoOffice.toLowerCase().startsWith("t") || sNoOffice.toLowerCase().startsWith("y")) + { + return false; + } + } + return true; + } + // Handle for Reference Build ID, is set in ConvWatch.createPostscriptStartCheck() private String m_sRefBuildID; @@ -573,6 +616,21 @@ public class GraphicalTestArguments { return m_bWithBorderMove; } + + + /* + helper class for performance analyser features + */ + PerformanceContainer m_aPerformanceContainer = null; + public PerformanceContainer getPerformance() + { + if (m_aPerformanceContainer == null) + { + m_aPerformanceContainer = new PerformanceContainer(); + } + return m_aPerformanceContainer; + } + } |