This is the mail archive of the mauve-patches@sources.redhat.com mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

java.awt.image.SinglePixelPackedSampleModel.equals()


I've updated the test for the equals() method in the
java.awt.image.SinglePixelPackedSampleModel class to check the
'scanlineStride' - see the attached patch which I've applied.

Regards,

Dave Gilbert


Index: ChangeLog
===================================================================
RCS file: /cvs/mauve/mauve/ChangeLog,v
retrieving revision 1.738
diff -u -r1.738 ChangeLog
--- ChangeLog	14 Nov 2004 17:10:47 -0000	1.738
+++ ChangeLog	14 Nov 2004 21:12:18 -0000
@@ -1,3 +1,8 @@
+2004-11-14  David Gilbert  <david.gilbert@object-refinery.com>
+
+	* gnu/testlet/java/awt/image/SinglePixelPackedSampleModel/equals.java: 
+	added check for scanlineStride.
+	
 2004-11-14  Noa Resare  <noa@resare.com>
 
 	* gnu/testlet/java/text/SimpleDateFormat/parse.java:
@@ -5,7 +10,7 @@
 
 2004-11-11  David Gilbert  <david.gilbert@object-refinery.com>
 
-	*
+	* 
 	gnu/testlet/java/text/SimpleDateFormat/getDateFormatSymbols.java,
 	gnu/testlet/java/text/SimpleDateFormat/setDateFormatSymbols.java:
 	New tests;
Index: gnu/testlet/java/awt/image/SinglePixelPackedSampleModel/equals.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/awt/image/SinglePixelPackedSampleModel/equals.java,v
retrieving revision 1.1
diff -u -r1.1 equals.java
--- gnu/testlet/java/awt/image/SinglePixelPackedSampleModel/equals.java	15 Oct 2004 23:44:08 -0000	1.1
+++ gnu/testlet/java/awt/image/SinglePixelPackedSampleModel/equals.java	14 Nov 2004 21:12:21 -0000
@@ -91,6 +91,16 @@
     );
     harness.check(m1.equals(m2));
 
+    // scanline stride
+    m1 = new SinglePixelPackedSampleModel(
+      DataBuffer.TYPE_INT, 5, 10, 99, new int[] {224, 24, 7 }
+    );
+    harness.check(!m1.equals(m2));
+    m2 = new SinglePixelPackedSampleModel(
+      DataBuffer.TYPE_INT, 5, 10, 99, new int[] {224, 24, 7 }
+    );
+    harness.check(m1.equals(m2));  
   }
+  
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]