Examples of AnchorType


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

   * Tests that selection do not affect break replacement.
   *
   * @see AnchorUtils#setTextBetweenAnchors
   */
  public void testSetTextBetweenAnchors() {
    AnchorType bottomType = AnchorType.create(EditorTests.class, "bottom");
    AnchorType topType = AnchorType.create(EditorTests.class, "top");

    Document doc = Document.createFromString("qwerty\nasdfgh\nzxcvbn\n");
    LineFinder lineFinder = doc.getLineFinder();
    AnchorManager anchorManager = doc.getAnchorManager();
    LineInfo lineInfo = lineFinder.findLine(1);
View Full Code Here

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

   * the same type. So, anchor types cannot rely on reference equality. If we
   * ever decide to change that, this test will let us know to update
   * expectations elsewhere.
   */
  public void testAnchorTypeEquality() {
    AnchorType type1dup = AnchorType.create(AnchorTests.class, "1");
    assertEquals(ANCHOR_TYPE_1, type1dup);
    assertEquals(ANCHOR_TYPE_1.toString(), type1dup.toString());

    // Reminder to update AnchorType comparisons to identity rather than .equals
    assertNotSame(ANCHOR_TYPE_1, type1dup);
  }
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.