Examples of noOpDocOp()


Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

    // 2 ops merged into one.
    queue.add(util.noOpDocOp("blipA"));
    queue.add(util.noOpDocOp("blipA"));

    // Get a server op
    transformer.expect(util.noOpDocOp("blipA")).echo();
    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));

    // Should get only 1 op
    assertQueueSize(1);
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));

    // Should get only 1 op
    assertQueueSize(1);
    assertEquals(list(util.noOpDocOp("blipA")), copyList(queue.take()));

    assertQueueIsEmpty();
  }

  /**
 
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

   */
  public void testGettingSeveralOpsInOneDelta() throws TransformException {
    DeltaTestUtil util = new DeltaTestUtil(BOB);

    // Do 1 client op
    queue.add(util.noOpDocOp("blipA"));

    // Get a server op
    transformer.expect(util.noOpDocOp("blipA")).echo();
    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

    // Do 1 client op
    queue.add(util.noOpDocOp("blipA"));

    // Get a server op
    transformer.expect(util.noOpDocOp("blipA")).echo();
    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));

    // Do another client op
    queue.add(util.noOpDocOp("blipB"));
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

    transformer.expect(util.noOpDocOp("blipA")).echo();
    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));

    // Do another client op
    queue.add(util.noOpDocOp("blipB"));

    // Get a server op
    transformer.expect(util.noOpDocOp("blipA"), util.noOpDocOp("blipB")).echo();
    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

    // Do another client op
    queue.add(util.noOpDocOp("blipB"));

    // Get a server op
    transformer.expect(util.noOpDocOp("blipA"), util.noOpDocOp("blipB")).echo();
    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));

    // Should get 2 ops in the same delta
    assertQueueSizeBetween(1, 2);
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

    // Do another client op
    queue.add(util.noOpDocOp("blipB"));

    // Get a server op
    transformer.expect(util.noOpDocOp("blipA"), util.noOpDocOp("blipB")).echo();
    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));

    // Should get 2 ops in the same delta
    assertQueueSizeBetween(1, 2);
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));

    // Should get 2 ops in the same delta
    assertQueueSizeBetween(1, 2);
    assertEquals(list(util.noOpDocOp("blipA"), util.noOpDocOp("blipB")), copyList(queue.take()));

    assertQueueIsEmpty();
  }

  /**
 
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

    assertEquals(transformer.getOutputServerDelta(), // \u2620
        queue.transform(transformer.getInputServerDelta()));

    // Should get 2 ops in the same delta
    assertQueueSizeBetween(1, 2);
    assertEquals(list(util.noOpDocOp("blipA"), util.noOpDocOp("blipB")), copyList(queue.take()));

    assertQueueIsEmpty();
  }

  /**
 
View Full Code Here

Examples of org.waveprotocol.wave.model.testing.DeltaTestUtil.noOpDocOp()

   */
  public void testNoCompositionWithInsertHead() throws TransformException {
    DeltaTestUtil util = new DeltaTestUtil(BOB);

    // Do 1 client op
    queue.add(util.noOpDocOp("blipA"));
    // Pushing an op to the head should never merge
    queue.insertHead(Arrays.asList(util.noOpDocOp("blipA")));

    // Get a server op
    transformer.expect(util.noOpDocOp("blipA")).echo();
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.