This is the mail archive of the mauve-patches@sourceware.org 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]

FYI: javax.swing.text.PlainDocument - new tests


I committed these new tests:

2006-01-25 David Gilbert <david.gilbert@object-refinery.com>

* gnu/testlet/javax/swing/text/PlainDocument/createPosition.java: New tests,
* gnu/testlet/javax/swing/text/PlainDocument/getLength.java: Likewise,
* gnu/testlet/javax/swing/text/PlainDocument/getRootElements.java: Likewise,
* gnu/testlet/javax/swing/text/PlainDocument/getText.java: Likewise,
* gnu/testlet/javax/swing/text/PlainDocument/insertString.java
(test): Call new test methods,
(testArguments): New method,
(testPositions): Likewise,
* gnu/testlet/javax/swing/text/PlainDocument/remove.java: New tests.


Regards,

Dave
Index: gnu/testlet/javax/swing/text/PlainDocument/createPosition.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/PlainDocument/createPosition.java
diff -N gnu/testlet/javax/swing/text/PlainDocument/createPosition.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/PlainDocument/createPosition.java	25 Jan 2006 18:10:47 -0000
@@ -0,0 +1,100 @@
+/* createPosition.java -- Some checks for the createPosition() method in the 
+                          PlainDocument class.
+   Copyright (C) 2006  David Gilbert <david.gilbert@object-refinery.com>
+This file is part of Mauve.
+
+Mauve is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+Mauve is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Mauve; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+*/
+
+// Tags: 1.2
+
+package gnu.testlet.javax.swing.text.PlainDocument;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.BadLocationException;
+import javax.swing.text.PlainDocument;
+import javax.swing.text.Position;
+
+public class createPosition implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    test1(harness);
+    test2(harness);
+  }
+  
+  public void test1(TestHarness harness)
+  {
+    harness.checkPoint("test1");
+    PlainDocument d = new PlainDocument();
+    try
+    {
+      Position p0 = d.createPosition(0);
+      harness.check(p0.getOffset(), 0);
+      Position p1 = d.createPosition(1);
+      harness.check(p1.getOffset(), 1);
+      d.insertString(0, "ABC", null);
+      harness.check(p0.getOffset(), 0);
+      harness.check(p1.getOffset(), 4);
+    }
+    catch (BadLocationException e)
+    { 
+    }
+  }
+
+  public void test2(TestHarness harness)
+  {
+    harness.checkPoint("test2");
+    PlainDocument d = new PlainDocument();
+    try
+    {
+      d.insertString(0, "ABC", null);
+      Position p0 = d.createPosition(0);
+      harness.check(p0.getOffset(), 0);
+      Position p1 = d.createPosition(1);
+      harness.check(p1.getOffset(), 1);
+      Position p2 = d.createPosition(3);
+      harness.check(p2.getOffset(), 3);
+      Position p3 = d.createPosition(4);
+      harness.check(p3.getOffset(), 4);
+      
+      d.insertString(1, "XYZ", null);
+      harness.check(p0.getOffset(), 0);
+      harness.check(p1.getOffset(), 4);
+      harness.check(p2.getOffset(), 6);
+      harness.check(p3.getOffset(), 7);
+      
+      d.remove(2, 3);
+      harness.check(p0.getOffset(), 0);
+      harness.check(p1.getOffset(), 2);
+      harness.check(p2.getOffset(), 3);
+      harness.check(p3.getOffset(), 4);      
+    }
+    catch (BadLocationException e)
+    { 
+    }
+  }
+  
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/PlainDocument/getLength.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/PlainDocument/getLength.java
diff -N gnu/testlet/javax/swing/text/PlainDocument/getLength.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/PlainDocument/getLength.java	25 Jan 2006 18:10:47 -0000
@@ -0,0 +1,68 @@
+/* getLength.java -- Some checks for the getLength() method in the 
+                     PlainDocument class.
+   Copyright (C) 2006  David Gilbert <david.gilbert@object-refinery.com>
+This file is part of Mauve.
+
+Mauve is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+Mauve is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Mauve; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+*/
+
+// Tags: 1.2
+
+package gnu.testlet.javax.swing.text.PlainDocument;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.BadLocationException;
+import javax.swing.text.PlainDocument;
+
+public class getLength implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    PlainDocument d = new PlainDocument();
+    
+    harness.check(d.getLength(), 0);
+    try
+    {
+      d.insertString(0, "ABC", null);
+    }
+    catch (BadLocationException e)
+    {
+      // ignore - checks will fail if this happens
+    }
+    harness.check(d.getLength(), 3);
+    
+    // try adding a string with a '\n'
+    try
+    {
+      d.insertString(0, "ABC\n", null);
+    }
+    catch (BadLocationException e)
+    {
+      // ignore - checks will fail if this happens
+    }
+    harness.check(d.getLength(), 7);
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/PlainDocument/getRootElements.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/PlainDocument/getRootElements.java
diff -N gnu/testlet/javax/swing/text/PlainDocument/getRootElements.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/PlainDocument/getRootElements.java	25 Jan 2006 18:10:47 -0000
@@ -0,0 +1,49 @@
+/* getRootElements.java -- Some checks for the getRootElements() method in the 
+                           PlainDocument class.
+   Copyright (C) 2006  David Gilbert <david.gilbert@object-refinery.com>
+This file is part of Mauve.
+
+Mauve is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+Mauve is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Mauve; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+*/
+
+// Tags: 1.2
+
+package gnu.testlet.javax.swing.text.PlainDocument;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.Element;
+import javax.swing.text.PlainDocument;
+
+public class getRootElements implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    PlainDocument d = new PlainDocument();
+    Element[] e = d.getRootElements();
+    harness.check(e.length, 1);
+    harness.check(e[0], d.getDefaultRootElement());
+  }
+
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/PlainDocument/getText.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/PlainDocument/getText.java
diff -N gnu/testlet/javax/swing/text/PlainDocument/getText.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/PlainDocument/getText.java	25 Jan 2006 18:10:47 -0000
@@ -0,0 +1,265 @@
+/* getText.java -- Some checks for the getText() method in the PlainDocument
+                    class.
+   Copyright (C) 2006  David Gilbert <david.gilbert@object-refinery.com>
+This file is part of Mauve.
+
+Mauve is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+Mauve is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Mauve; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+*/
+
+// Tags: 1.2
+
+package gnu.testlet.javax.swing.text.PlainDocument;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.BadLocationException;
+import javax.swing.text.PlainDocument;
+import javax.swing.text.Segment;
+
+public class getText implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    testMethod1(harness);
+    testMethod2(harness);
+  }
+  
+  public void testMethod1(TestHarness harness)
+  {
+    harness.checkPoint("(int, int)");
+    PlainDocument d = new PlainDocument();
+    
+    // check default result
+    try
+    {
+      d.insertString(0, "XYZ", null);
+      harness.check(d.getText(0, 3).equals("XYZ"));
+    }
+    catch (BadLocationException e)
+    {
+      harness.fail(e.toString());
+    }
+    
+    // get the implicit newline
+    try
+    {
+      harness.check(d.getText(0, 4).equals("XYZ\n"));
+    }
+    catch (BadLocationException e)
+    {
+      harness.fail(e.toString());
+    }    
+
+    // fail on next char
+    try
+    {
+      d.getText(0, 5);
+      harness.check(false);
+    }
+    catch (BadLocationException e)
+    {
+      harness.check(true);
+    }    
+
+    // add some more text
+    try
+    {
+      d.insertString(0, "ABCDEFG", null);
+    }
+    catch (BadLocationException e)
+    {
+    }
+    harness.check(d.getLength(), 10);
+    
+    // if index < 0 should get BadLocationException
+    boolean pass = false;
+    try
+    {
+      d.getText(-1, 3);
+    }
+    catch (BadLocationException e)
+    {
+      pass = true;
+    }
+    harness.check(pass);
+    
+    // if index > end of text should get BadLocationException
+    pass = false;
+    try
+    {
+      d.getText(99, 1);
+    }
+    catch (BadLocationException e)
+    {
+      pass = true;
+    }
+    harness.check(pass);
+    
+    // if len goes past end of range, should get BadLocationException
+    pass = false;
+    try
+    {
+      d.getText(0, 99);
+    }
+    catch (BadLocationException e)
+    {
+      pass = true;
+    }
+    harness.check(pass);
+    
+    // try a zero length string
+    try
+    {
+      harness.check(d.getText(1, 0).equals(""));
+    }
+    catch (BadLocationException e)
+    {
+      harness.fail(e.toString());
+    }
+  }
+
+  public void testMethod2(TestHarness harness)
+  {
+    harness.checkPoint("(int, int, Segment)");
+    PlainDocument d = new PlainDocument();
+    Segment seg = new Segment();
+    
+    // check default result
+    try
+    {
+      d.getText(0, 1, seg);
+    }
+    catch (BadLocationException e)
+    {
+      // ignore - tests below will fail if this happens
+    }
+    harness.check(seg.offset, 0);
+    harness.check(seg.count, 1);
+    harness.check(seg.array[0], '\n');
+
+    // if len goes past end of range, should get BadLocationException
+    boolean pass = false;
+    try
+    {
+      d.getText(0, 2, seg);
+    }
+    catch (BadLocationException e)
+    {
+      pass = true;
+    }
+    harness.check(pass);
+
+    // add some more text
+    try
+    {
+      d.insertString(0, "ABCDEFG", null);
+    }
+    catch (BadLocationException e)
+    {
+    }
+    harness.check(d.getLength(), 7);
+    
+    // if index < 0 should get BadLocationException
+    pass = false;
+    try
+    {
+      d.getText(-1, 3, seg);
+    }
+    catch (BadLocationException e)
+    {
+      pass = true;
+    }
+    harness.check(pass);
+    
+    // if index > end of text should get BadLocationException
+    pass = false;
+    try
+    {
+      d.getText(99, 1, seg);
+    }
+    catch (BadLocationException e)
+    {
+      pass = true;
+    }
+    harness.check(pass);
+    
+    // if len goes past end of range, should get BadLocationException
+    pass = false;
+    try
+    {
+      d.getText(0, 99, seg);
+    }
+    catch (BadLocationException e)
+    {
+      pass = true;
+    }
+    harness.check(pass);
+    
+    // try a zero length string
+    try
+    {
+      d.getText(1, 0, seg);
+    }
+    catch (BadLocationException e)
+    {
+    }
+    harness.check(seg.offset, 1);
+    harness.check(seg.count, 0);
+    
+    // what happens for null Segment
+    pass = false;
+    try
+    {
+      d.getText(0, 1, null);
+    }
+    catch (NullPointerException e)
+    {
+      pass = true;
+    }
+    catch (BadLocationException e)
+    {
+      // ignore
+    }
+    harness.check(pass);
+    
+    // what happens if we update the Segment array, does that change the 
+    // StringContent
+    Segment seg2 = new Segment();
+    Segment seg3 = new Segment();
+    PlainDocument d2 = new PlainDocument();
+    try
+    {
+      d2.insertString(0, "XYZ", null);
+      d2.getText(0, 3, seg2);
+      seg2.array[1] = '5';
+      d2.getText(0, 3, seg3);
+    }
+    catch (BadLocationException e) 
+    {
+      // ignore
+    }
+    harness.check(seg2.array[1], '5');
+    harness.check(seg3.array[1], '5');
+  }
+}
\ No newline at end of file
Index: gnu/testlet/javax/swing/text/PlainDocument/insertString.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/text/PlainDocument/insertString.java,v
retrieving revision 1.1
diff -u -r1.1 insertString.java
--- gnu/testlet/javax/swing/text/PlainDocument/insertString.java	27 Oct 2005 14:31:52 -0000	1.1
+++ gnu/testlet/javax/swing/text/PlainDocument/insertString.java	25 Jan 2006 18:10:47 -0000
@@ -1,6 +1,7 @@
 // Tags: JDK1.2
 
 // Copyright (C) 2005 Roman Kennke <kennke@aicas.com>
+// Copyright (C) 2006 David Gilbert <david.gilbert@object-refinery.com>
 
 // This file is part of Mauve.
 
@@ -16,8 +17,8 @@
 
 // You should have received a copy of the GNU General Public License
 // along with Mauve; see the file COPYING.  If not, write to
-// the Free Software Foundation, 59 Temple Place - Suite 330,
-// Boston, MA 02111-1307, USA.
+// the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
+// Boston, MA 02110-1301 USA.
 
 package gnu.testlet.javax.swing.text.PlainDocument;
 
@@ -25,6 +26,7 @@
 import javax.swing.text.BadLocationException;
 import javax.swing.text.Element;
 import javax.swing.text.PlainDocument;
+import javax.swing.text.Position;
 import javax.swing.text.SimpleAttributeSet;
 
 import gnu.testlet.TestHarness;
@@ -47,6 +49,8 @@
   {
     testNewline(harness);
     testFilterNewline(harness);
+    testArguments(harness);
+    testPositions(harness);
   }
 
   /**
@@ -107,4 +111,93 @@
     harness.check(el1.getStartOffset(), 0);
     harness.check(el1.getEndOffset(), 12);
   }
+  
+  public void testArguments(TestHarness harness)
+  {
+    harness.checkPoint("testArguments");
+    PlainDocument d = new PlainDocument();
+    
+    // negative index
+    boolean pass = false;
+    try
+    {
+      d.insertString(-1, "XYZ", SimpleAttributeSet.EMPTY);
+    }
+    catch (BadLocationException e)
+    {
+      pass = true;
+    }
+    harness.check(pass);
+
+    // index > length
+    pass = false;
+    try
+    {
+      d.insertString(2, "XYZ", SimpleAttributeSet.EMPTY);
+    }
+    catch (BadLocationException e)
+    {
+      pass = true;
+    }
+    harness.check(pass);
+  
+    // null string is OK (ignored)
+    pass = true;
+    try
+    {
+      d.insertString(0, null, SimpleAttributeSet.EMPTY);
+    }
+    catch (Exception e)
+    {
+      pass = false;
+    }
+    harness.check(pass);
+    
+    // null attribute set is OK
+    pass = true;
+    try
+    {
+      d.insertString(0, "ABC", null);
+    }
+    catch (Exception e)
+    {
+      pass = false;
+    }
+    harness.check(pass);
+
+  }
+  
+  public void testPositions(TestHarness harness) 
+  {
+    harness.checkPoint("testPositions");
+    PlainDocument d = new PlainDocument();
+    try
+      {
+        d.insertString(0, "ABC", null);
+        Position p0 = d.createPosition(0);
+        harness.check(p0.getOffset(), 0);
+        Position p1 = d.createPosition(1);
+        harness.check(p1.getOffset(), 1);
+        Position p2 = d.createPosition(3);
+        harness.check(p2.getOffset(), 3);
+        Position p3 = d.createPosition(4);
+        harness.check(p3.getOffset(), 4);
+         
+        d.insertString(1, "XYZ", null);
+        harness.check(p0.getOffset(), 0);
+        harness.check(p1.getOffset(), 4);
+        harness.check(p2.getOffset(), 6);
+        harness.check(p3.getOffset(), 7);
+         
+        d.remove(2, 3);
+        harness.check(p0.getOffset(), 0);
+        harness.check(p1.getOffset(), 2);
+        harness.check(p2.getOffset(), 3);
+        harness.check(p3.getOffset(), 4);      
+      }
+    catch (BadLocationException e)
+      { 
+      }
+  }
+
 }
Index: gnu/testlet/javax/swing/text/PlainDocument/remove.java
===================================================================
RCS file: gnu/testlet/javax/swing/text/PlainDocument/remove.java
diff -N gnu/testlet/javax/swing/text/PlainDocument/remove.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/text/PlainDocument/remove.java	25 Jan 2006 18:10:47 -0000
@@ -0,0 +1,156 @@
+/* remove.java -- Some checks for the remove() method in the PlainDocument 
+   class.
+   Copyright (C) 2006  David Gilbert <david.gilbert@object-refinery.com>
+This file is part of Mauve.
+
+Mauve is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+Mauve is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Mauve; see the file COPYING.  If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+*/
+
+// Tags: 1.2
+
+package gnu.testlet.javax.swing.text.PlainDocument;
+
+import gnu.testlet.TestHarness;
+import gnu.testlet.Testlet;
+
+import javax.swing.text.BadLocationException;
+import javax.swing.text.PlainDocument;
+import javax.swing.text.Position;
+
+public class remove implements Testlet
+{
+    
+  /**
+   * Runs the test using the specified harness.
+   * 
+   * @param harness  the test harness (<code>null</code> not permitted).
+   */
+  public void test(TestHarness harness)      
+  {
+    testArguments(harness);
+    testPositions(harness);
+  }
+  
+  public void testArguments(TestHarness harness)
+  {
+    harness.checkPoint("testArguments");
+    PlainDocument d = new PlainDocument();
+    try
+    {
+      d.insertString(0, "ABC", null);
+    }
+    catch (BadLocationException e)
+    { 
+    }
+    
+    // negative index
+    boolean pass = false;
+    try
+    {
+      d.remove(-1, 1);
+    }
+    catch (BadLocationException e)
+    { 
+      pass = true;
+    }
+    harness.check(pass);
+    
+    // index too high
+    pass = false;
+    try
+    {
+      d.remove(4, 0);
+    }
+    catch (BadLocationException e)
+    { 
+      pass = true;
+    }
+    harness.check(pass);
+    
+    // index + length to high
+    pass = false;
+    try
+    {
+      d.remove(2, 99);
+    }
+    catch (BadLocationException e)
+    { 
+      pass = true;
+    }
+    harness.check(pass);
+
+    // negative length
+    pass = false;
+    try
+    {
+      d.remove(2, -1);
+    }
+    catch (BadLocationException e)
+    { 
+      pass = true;
+    }
+    harness.check(pass);
+  
+  }
+
+  public void testPositions(TestHarness harness)
+  {
+    harness.checkPoint("testPositions");
+    PlainDocument d = new PlainDocument();
+    try
+    {
+      d.insertString(0, "ABCDEF", null);
+      Position p0 = d.createPosition(0);
+      harness.check(p0.getOffset(), 0);
+      Position p1 = d.createPosition(1);
+      harness.check(p1.getOffset(), 1);
+      Position p2 = d.createPosition(2);
+      harness.check(p2.getOffset(), 2);
+      Position p3 = d.createPosition(3);
+      harness.check(p3.getOffset(), 3);
+      Position p4 = d.createPosition(4);
+      harness.check(p4.getOffset(), 4);
+      Position p5 = d.createPosition(5);
+      harness.check(p5.getOffset(), 5);
+      Position p6 = d.createPosition(6);
+      harness.check(p6.getOffset(), 6);
+      
+      d.remove(2, 2);
+      harness.check(p0.getOffset(), 0);
+      harness.check(p1.getOffset(), 1);
+      harness.check(p2.getOffset(), 2);
+      harness.check(p3.getOffset(), 2);      
+      harness.check(p4.getOffset(), 2);      
+      harness.check(p5.getOffset(), 3);      
+      harness.check(p6.getOffset(), 4);
+      
+      d.remove(0, 1);
+      harness.check(p0.getOffset(), 0);
+      harness.check(p1.getOffset(), 0);
+      harness.check(p2.getOffset(), 1);
+      harness.check(p3.getOffset(), 1);      
+      harness.check(p4.getOffset(), 1);      
+      harness.check(p5.getOffset(), 2);      
+      harness.check(p6.getOffset(), 3);
+      
+    }
+    catch (BadLocationException e)
+    { 
+    }
+  }
+  
+}
\ No newline at end of file

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