You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by de...@apache.org on 2002/02/26 17:26:44 UTC
cvs commit: xml-batik/test-sources/org/apache/batik/gvt TextSelectionTest.java
deweese 02/02/26 08:26:44
Modified: test-sources/org/apache/batik/gvt TextSelectionTest.java
Log:
Test now uses 'dynamic' bridge context so I can look up the associated
GraphicsNode's.
Revision Changes Path
1.2 +3 -2 xml-batik/test-sources/org/apache/batik/gvt/TextSelectionTest.java
Index: TextSelectionTest.java
===================================================================
RCS file: /home/cvs/xml-batik/test-sources/org/apache/batik/gvt/TextSelectionTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TextSelectionTest.java 23 Oct 2001 13:42:30 -0000 1.1
+++ TextSelectionTest.java 26 Feb 2002 16:26:43 -0000 1.2
@@ -49,7 +49,7 @@
* This test validates that the text selection API's work properly.
*
* @author <a href="mailto:deweese@apache.org">Thomas DeWeese</a>
- * @version $Id: TextSelectionTest.java,v 1.1 2001/10/23 13:42:30 deweese Exp $
+ * @version $Id: TextSelectionTest.java,v 1.2 2002/02/26 16:26:43 deweese Exp $
*/
public class TextSelectionTest extends AbstractTest {
@@ -204,6 +204,7 @@
GVTBuilder builder = new GVTBuilder();
ctx = new BridgeContext(userAgent, loader);
+ ctx.setDynamic(true);
svgDoc = (SVGDocument)loader.loadDocument(svg.toString());
gvtRoot = builder.build(ctx, svgDoc);
} catch(Exception e) {
@@ -224,7 +225,7 @@
Shape highlight = null;
try {
Element e = svgDoc.getElementById(id);
- // System.out.println("Element: " + e + " CTX: " + ctx );
+ /// System.out.println("Element: " + e + " CTX: " + ctx );
GraphicsNode gn = ctx.getGraphicsNode(e);
if (gn == null) {
report.setErrorCode(ERROR_BAD_ID);
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org