diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-12-10 16:02:55 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-12-10 16:02:55 +0000 |
commit | d96dad392a561ff23ed0766da02a95544ced2048 (patch) | |
tree | 948dee96663ee67ad2ed8bcbdd589f9b1f588199 /qadevOOo/tests/java/ifc/document | |
parent | a92a085e142a8c9107d684df17b94dd741d6a876 (diff) |
INTEGRATION: CWS qadev20 (1.2.98); FILE MERGED
2004/11/24 20:13:51 cn 1.2.98.1: #i36520# adopt test to handle jump marks in URLs
Diffstat (limited to 'qadevOOo/tests/java/ifc/document')
-rw-r--r-- | qadevOOo/tests/java/ifc/document/_XTypeDetection.java | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/ifc/document/_XTypeDetection.java b/qadevOOo/tests/java/ifc/document/_XTypeDetection.java index 3127eeb97220..431e8718c713 100644 --- a/qadevOOo/tests/java/ifc/document/_XTypeDetection.java +++ b/qadevOOo/tests/java/ifc/document/_XTypeDetection.java @@ -2,9 +2,9 @@ * * $RCSfile: _XTypeDetection.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change:$Date: 2003-09-08 10:27:39 $ + * last change:$Date: 2004-12-10 17:02:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -87,12 +87,14 @@ public class _XTypeDetection extends MultiMethodTest { public XTypeDetection oObj = null; private String docURL = null; + private String bookmarkURL = null; /** * Get the document URL. */ public void before() { docURL = utils.getFullTestURL("XTypeDetection.sxw"); + bookmarkURL = (String) tEnv.getObjRelation("XTypeDetection.bookmarkDoc"); } /** @@ -121,7 +123,7 @@ public class _XTypeDetection extends MultiMethodTest { */ public void _queryTypeByDescriptor() { boolean result = true ; - + log.println("test document with wrong extension"); PropertyValue[][] mediaDescr = new PropertyValue[1][1]; mediaDescr[0][0] = new PropertyValue(); mediaDescr[0][0].Name = "URL"; @@ -133,6 +135,17 @@ public class _XTypeDetection extends MultiMethodTest { type = oObj.queryTypeByDescriptor(mediaDescr, true); result &= type.indexOf("calc") > -1; + log.println("test dokument with bookmark"); + + mediaDescr = new PropertyValue[1][1]; + mediaDescr[0][0] = new PropertyValue(); + mediaDescr[0][0].Name = "URL"; + mediaDescr[0][0].Value = bookmarkURL; + System.out.println(bookmarkURL); + type = "FAILED"; + type = oObj.queryTypeByDescriptor(mediaDescr, false); + + System.out.println("TYPE: " + type); tRes.tested("queryTypeByDescriptor()", result) ; } } |