Examples of onSearchLine()


Examples of com.google.collide.client.editor.search.SearchTask.SearchTaskExecutor.onSearchLine()

  public void testHaltViewportSearch() {
    ViewportModel viewport = createMockViewport(document, 5);
    SearchTask task = new SearchTask(document, viewport, scheduler);
    SearchTaskExecutor executor = EasyMock.createMock(SearchTaskExecutor.class);
    expect(executor.onSearchLine(viewport.getTopLine(), 0, true)).andReturn(true);
    expect(
        executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.anyInt(), EasyMock.eq(true)))
        .andReturn(true).times(3);
    expect(executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.eq(4), EasyMock.eq(true)))
        .andReturn(false);
View Full Code Here

Examples of com.google.collide.client.editor.search.SearchTask.SearchTaskExecutor.onSearchLine()

    ViewportModel viewport = createMockViewport(document, 5);
    SearchTask task = new SearchTask(document, viewport, scheduler);
    SearchTaskExecutor executor = EasyMock.createMock(SearchTaskExecutor.class);
    expect(executor.onSearchLine(viewport.getTopLine(), 0, true)).andReturn(true);
    expect(
        executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.anyInt(), EasyMock.eq(true)))
        .andReturn(true).times(3);
    expect(executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.eq(4), EasyMock.eq(true)))
        .andReturn(false);
    replay(executor);
View Full Code Here

Examples of com.google.collide.client.editor.search.SearchTask.SearchTaskExecutor.onSearchLine()

    SearchTaskExecutor executor = EasyMock.createMock(SearchTaskExecutor.class);
    expect(executor.onSearchLine(viewport.getTopLine(), 0, true)).andReturn(true);
    expect(
        executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.anyInt(), EasyMock.eq(true)))
        .andReturn(true).times(3);
    expect(executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.eq(4), EasyMock.eq(true)))
        .andReturn(false);
    replay(executor);

    task.searchDocument(executor, null);
    verify(executor);
View Full Code Here

Examples of com.google.collide.client.editor.search.SearchTask.SearchTaskExecutor.onSearchLine()

  public void testHaltSchedulerSearch() {
    ViewportModel viewport = createMockViewport(document, 5);
    SearchTask task = new SearchTask(document, viewport, scheduler);
    SearchTaskExecutor executor = EasyMock.createMock(SearchTaskExecutor.class);
    expect(
        executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.anyInt(), EasyMock.eq(true)))
        .andReturn(true).times(5);
    expect(
        executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.eq(5), EasyMock.eq(false)))
        .andReturn(false);
    replay(executor);
View Full Code Here

Examples of com.google.collide.client.editor.search.SearchTask.SearchTaskExecutor.onSearchLine()

    SearchTaskExecutor executor = EasyMock.createMock(SearchTaskExecutor.class);
    expect(
        executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.anyInt(), EasyMock.eq(true)))
        .andReturn(true).times(5);
    expect(
        executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.eq(5), EasyMock.eq(false)))
        .andReturn(false);
    replay(executor);

    task.searchDocument(executor, null);
    verify(executor);
View Full Code Here

Examples of com.google.collide.client.editor.search.SearchTask.SearchTaskExecutor.onSearchLine()

  public void testDocumentFitsInViewport() {
    SearchTask task = new SearchTask(document, createMockViewport(document, 12), scheduler);

    SearchTaskExecutor executor = EasyMock.createMock(SearchTaskExecutor.class);
    expect(
        executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.anyInt(), EasyMock.eq(true)))
        .andReturn(true).times(12);
    replay(executor);

    task.searchDocument(executor, null);
    verify(executor);
View Full Code Here

Examples of com.google.collide.client.editor.search.SearchTask.SearchTaskExecutor.onSearchLine()

  public void testSchedulerRunsThroughDocument() {
    SearchTask task = new SearchTask(document, createMockViewport(document, 5), scheduler);

    SearchTaskExecutor executor = EasyMock.createMock(SearchTaskExecutor.class);
    expect(
        executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.anyInt(), EasyMock.eq(true)))
        .andReturn(true).times(5);
    expect(executor.onSearchLine(
        EasyMock.anyObject(Line.class), EasyMock.anyInt(), EasyMock.eq(false)))
        .andReturn(true).times(7);
    replay(executor);
View Full Code Here

Examples of com.google.collide.client.editor.search.SearchTask.SearchTaskExecutor.onSearchLine()

    SearchTaskExecutor executor = EasyMock.createMock(SearchTaskExecutor.class);
    expect(
        executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.anyInt(), EasyMock.eq(true)))
        .andReturn(true).times(5);
    expect(executor.onSearchLine(
        EasyMock.anyObject(Line.class), EasyMock.anyInt(), EasyMock.eq(false)))
        .andReturn(true).times(7);
    replay(executor);

    task.searchDocument(executor, null);
View Full Code Here

Examples of com.google.collide.client.editor.search.SearchTask.SearchTaskExecutor.onSearchLine()

  public void testDirectionDownWorks() {
    ViewportModel viewport = createMockViewport(document, 5);
    SearchTask task = new SearchTask(document, viewport, scheduler);

    SearchTaskExecutor executor = EasyMock.createMock(SearchTaskExecutor.class);
    expect(executor.onSearchLine(viewport.getTopLine(), 0, true)).andReturn(true);
    expect(
        executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.anyInt(), EasyMock.eq(true)))
        .andReturn(true).times(3);
    expect(executor.onSearchLine(viewport.getBottomLine(), 4, true)).andReturn(true);
View Full Code Here

Examples of com.google.collide.client.editor.search.SearchTask.SearchTaskExecutor.onSearchLine()

    SearchTask task = new SearchTask(document, viewport, scheduler);

    SearchTaskExecutor executor = EasyMock.createMock(SearchTaskExecutor.class);
    expect(executor.onSearchLine(viewport.getTopLine(), 0, true)).andReturn(true);
    expect(
        executor.onSearchLine(EasyMock.anyObject(Line.class), EasyMock.anyInt(), EasyMock.eq(true)))
        .andReturn(true).times(3);
    expect(executor.onSearchLine(viewport.getBottomLine(), 4, true)).andReturn(true);

    expect(executor.onSearchLine(
        EasyMock.anyObject(Line.class), EasyMock.anyInt(), EasyMock.eq(false)))
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.