public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: Added test to gnu.testlet.javax.print.attribute.ResolutionSyntax
@ 2005-11-19 15:39 Wolfgang Baer
  0 siblings, 0 replies; only message in thread
From: Wolfgang Baer @ 2005-11-19 15:39 UTC (permalink / raw)
  To: mauve-patches

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

Hi,

I am checking in a new test for a special case in the toString method of 
gnu.testlet.javax.print.attribute.ResolutionSyntax.

Currently failing, patch for GNU classpath is in preparation.

2005-11-19  Wolfgang Baer  <WBaer@gmx.de>

        * gnu/testlet/javax/print/attribute/ResolutionSyntax/simple.java (test):
        Added test for special toString case and bundle them into a checkpoint.

Regards,
Wolfgang





[-- Attachment #2: ResolutionSyntax.patch --]
[-- Type: text/x-patch, Size: 1725 bytes --]

Index: gnu/testlet/javax/print/attribute/ResolutionSyntax/simple.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/print/attribute/ResolutionSyntax/simple.java,v
retrieving revision 1.1
diff -u -r1.1 simple.java
--- gnu/testlet/javax/print/attribute/ResolutionSyntax/simple.java	19 Nov 2005 10:44:40 -0000	1.1
+++ gnu/testlet/javax/print/attribute/ResolutionSyntax/simple.java	19 Nov 2005 15:37:26 -0000
@@ -49,15 +49,16 @@
     TestResolutionSyntax test = 
       new TestResolutionSyntax(400, 600, ResolutionSyntax.DPI);
     
-    harness.check(test.toString(), "40000x60000 dphi", "toString()");
-    harness.check(test.toString(ResolutionSyntax.DPI, "dpi"), 
-                  "400x600 dpi", "toString(DPI)");
+    harness.checkPoint("toString");
+    harness.check(test.toString(), "40000x60000 dphi");
+    harness.check(test.toString(ResolutionSyntax.DPI, "dpi"), "400x600 dpi");
     harness.check(test.toString(ResolutionSyntax.DPCM, "dpcm"), 
-                  "157x236 dpcm", "toString(DPCM)");
-    harness.check(test.getFeedResolution(ResolutionSyntax.DPCM), 
-                  236, "getFeedResolution(DPCM)");
-    harness.check(test.getFeedResolution(ResolutionSyntax.DPI), 
-                  600, "getFeedResolution(DPI)");
+                  "157x236 dpcm");
+    harness.check(test.toString(ResolutionSyntax.DPCM, null), "157x236");
+    
+    harness.checkPoint("getFeedResolution");
+    harness.check(test.getFeedResolution(ResolutionSyntax.DPCM), 236);
+    harness.check(test.getFeedResolution(ResolutionSyntax.DPI), 600);    
 
     TestResolutionSyntax test2 = 
       new TestResolutionSyntax(400, 600, ResolutionSyntax.DPI);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-19 15:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-19 15:39 FYI: Added test to gnu.testlet.javax.print.attribute.ResolutionSyntax Wolfgang Baer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).