t.clientDoInsert(2, "X").clientDoInsert(3, "Y", false).checkClientSentOps(0); t.checkClientDoc("<blip><p>XYabc</p></blip>"); t.serverDoInsert(0, 3, "A", 4).serverDoInsert(1, 4, "B", 4); t.clientDoInsert(2, "X").clientDoInsert(3, "Y", false).checkClientSentOps(0); t.checkClientDoc("<blip><p>XYabc</p></blip>"); t.serverDoInsert(0, 3, "A", 4);
t.clientDoInsert(2, "X").clientDoInsert(3, "Y", false).checkClientSentOps(0); t.checkClientDoc("<blip><p>XYabc</p></blip>"); t.serverDoInsert(0, 3, "A", 4).serverDoInsert(1, 4, "B", 4); t.clientDoInsert(2, "X").clientDoInsert(3, "Y", false).checkClientSentOps(0); t.checkClientDoc("<blip><p>XYabc</p></blip>"); t.serverDoInsert(0, 3, "A", 4);
t.clientDoInsert(2, "X"); t.checkClientGotOps().checkClientSentOps(0).checkClientDoc("<blip><p>Xabc</p></blip>"); t.clientDoInsert(2, "X").serverDoInsert(0, 3, "Y", 4); t.checkClientGotOps(0).checkClientSentOps(0).checkClientDoc("<blip><p>XaYbc</p></blip>"); t.clientDoInsert(2, "X").clientDoInsert(3, "Y"); t.serverDoInsert(0, 3, "A", 4); t.checkClientGotOps(0).checkClientSentOps(0).checkClientDoc("<blip><p>XYaAbc</p></blip>"); t.clientDoInsert(2, "X", false).clientDoInsert(4, "Y").clientDoInsert(6, "Z"); t.serverDoInsert(0, 3, "A", 5); t.checkClientGotOps(0).checkClientSentOps(0, 1).checkClientDoc("<blip><p>XaYAbZc</p></blip>"); t.clientDoInsert(2, "X").serverDoInsert(0, 3, "Y", 4).serverDoInsert(1, 4, "Z", 4); t.checkClientGotOps(0, 2).checkClientSentOps(0).checkClientDoc("<blip><p>XaYZbc</p></blip>"); t.clientDoInsert(2, "X").clientDoInsert(3, "Y"); t.serverDoInsert(0, 3, "Z", 4).serverDoInsert(1, 4, "A", 4); t.checkClientGotOps(0, 2).checkClientSentOps(0).checkClientDoc("<blip><p>XYaZAbc</p></blip>");
t.clientDoInsert(2, "X"); t.checkClientGotOps().checkClientSentOps(0).checkClientDoc("<blip><p>Xabc</p></blip>"); t.clientDoInsert(2, "X").serverDoInsert(0, 3, "Y", 4); t.checkClientGotOps(0).checkClientSentOps(0).checkClientDoc("<blip><p>XaYbc</p></blip>"); t.clientDoInsert(2, "X").clientDoInsert(3, "Y"); t.serverDoInsert(0, 3, "A", 4); t.checkClientGotOps(0).checkClientSentOps(0).checkClientDoc("<blip><p>XYaAbc</p></blip>"); t.clientDoInsert(2, "X", false).clientDoInsert(4, "Y").clientDoInsert(6, "Z"); t.serverDoInsert(0, 3, "A", 5); t.checkClientGotOps(0).checkClientSentOps(0, 1).checkClientDoc("<blip><p>XaYAbZc</p></blip>"); t.clientDoInsert(2, "X").serverDoInsert(0, 3, "Y", 4).serverDoInsert(1, 4, "Z", 4); t.checkClientGotOps(0, 2).checkClientSentOps(0).checkClientDoc("<blip><p>XaYZbc</p></blip>"); t.clientDoInsert(2, "X").clientDoInsert(3, "Y"); t.serverDoInsert(0, 3, "Z", 4).serverDoInsert(1, 4, "A", 4); t.checkClientGotOps(0, 2).checkClientSentOps(0).checkClientDoc("<blip><p>XYaZAbc</p></blip>");
/** * Pretend client did some insert at the given op versions. We don't need a version * number as it's inferred in client CC. * * Flush at the end. * @throws OperationException * @throws TransformException */ public TestConfig clientDoInsert(int insertionPoint, String content) throws OperationException, TransformException { return clientDoInsert(insertionPoint, content, true); }
/** * Pretend client did some insert at the given op versions. We don't need a version * number as it's inferred in client CC. * * Flush at the end. * @throws OperationException * @throws TransformException */ public TestConfig clientDoInsert(int insertionPoint, String content) throws OperationException, TransformException { return clientDoInsert(insertionPoint, content, true); }