Package com.google.wave.api.data.ApiView

Examples of com.google.wave.api.data.ApiView.ElementInfo


        LineContainers.debugContainerWrap("some text<gadget></gadget>"));
    ApiView api = new ApiView(document, mock(Wavelet.class));
    api.insert(3, new Image("id", "caption"));
    List<ElementInfo> apiElements = api.getElements();
    for (int i = 0; i < apiElements.size(); i++) {
      ElementInfo info = apiElements.get(i);
      assertEquals(info.xmlPosition, api.transformToXmlOffset(info.apiPosition));
    }
    assertInSync(document, api);
  }
View Full Code Here


    assertEquals(alt.apiContents(), api.apiContents());
    List<ElementInfo> apiElements = api.getElements();
    List<ElementInfo> altElements = alt.getElements();
    assertEquals(altElements.size(), apiElements.size());
    for (int i = 0; i < apiElements.size(); i++) {
      ElementInfo altInfo = altElements.get(i);
      ElementInfo apiInfo = apiElements.get(i);
      assertEquals(altInfo.element.getType(), apiInfo.element.getType());
      assertEquals(altInfo.apiPosition, apiInfo.apiPosition);
      assertEquals(altInfo.xmlPosition, apiInfo.xmlPosition);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.wave.api.data.ApiView.ElementInfo

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.