Package com.google.collide.client.editor.renderer.LineRenderer

Examples of com.google.collide.client.editor.renderer.LineRenderer.Target


   * @param startInMatch if true starts expecting MATCH_CSS
   * @param selectedMatchIndex will use selected_match_css for the item at this
   *        lengthList index if >= 0 and is inMatch at that index
   */
  private Target createMockTarget(ImmutableList<Integer> lengthList, boolean startInMatch) {
    Target mockTarget = EasyMock.createMock(Target.class);
   
    boolean inMatch = startInMatch;
    for (int i = 0; i < lengthList.size(); i++) {
      mockTarget.render(lengthList.get(i), inMatch ? MATCH_CSS : null);
      inMatch = !inMatch;
    }
    replay(mockTarget);
    return mockTarget;
  }
View Full Code Here


      lineInfo.moveToNext();
    }
   
    // Check that this line is parsed correctly
    ImmutableList<Integer> lengthList = ImmutableList.of(41, 4);
    Target mockTarget = createMockTarget(lengthList, false);
    assertTrue(renderer.resetToBeginningOfLine(lineInfo.line(), lineInfo.number()));
    for (int i = 0; i < lengthList.size(); i++) {
      renderer.renderNextChunk(mockTarget);
    }
    lineInfo.moveToNext();
View Full Code Here

TOP

Related Classes of com.google.collide.client.editor.renderer.LineRenderer.Target

Copyright © 2018 www.massapicom. 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.