Examples of AnchorList


Examples of com.google.collide.shared.document.anchor.AnchorList

  /**
   * Verify we can walk the anchors in order.
   */
  public void testSimpleTraversal() {
    AnchorList anchorList = anchorManager.getAnchors(doc.getFirstLine());
    assertEquals(2, anchorList.size());
    Anchor anchor = anchorList.get(0);

    for (Anchor a : anchors) {
      assertSame(anchor, a);
      anchor = anchorManager.getNextAnchor(anchor);
    }
View Full Code Here

Examples of com.google.collide.shared.document.anchor.AnchorList

  /**
   * Verify we can walk the anchors in reverse order
   */
  public void testBackwardsTraversal() {
    AnchorList anchorList = anchorManager.getAnchors(doc.getLastLine());
    assertEquals(2, anchorList.size());

    Anchor anchor = docEnd;
    for (int i = anchors.size() - 1; i >= 0; i--) {
      assertSame(anchors.get(i), anchor);
      assertEquals(anchors.get(i).getType(), anchor.getType());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.