Package com.google.collide.client

Examples of com.google.collide.client.Resources


*/
public class SearchMatchRendererTests extends TestCase {
  private static final String MATCH_CSS = "match";

  private Resources createMockResource() {
    Resources mockResource = EasyMock.createMock(Resources.class);
    Css mockCss = EasyMock.createMock(Css.class);
    expect(mockCss.match()).andReturn(MATCH_CSS).anyTimes();
    expect(mockResource.searchMatchRendererCss()).andReturn(mockCss).anyTimes();
   
    replay(mockCss, mockResource);
    return mockResource;
  }
View Full Code Here


    expect(mockSearchModel.getSearchPattern()).andReturn(
        RegExpUtils.createRegExpForWildcardPattern("Doug", "gi")).anyTimes();
    expect(mockSearchModel.getMatchManager()).andReturn(mockMatchManager).anyTimes();
    replay(mockSearchModel);
   
    Resources mockResources = createMockResource();
    SearchMatchRenderer renderer = new SearchMatchRenderer(mockResources, mockSearchModel);
   
    // Now ask it about each line in our document and check to see if its right
    Document doc = SearchTestsUtil.createDocument();
    LineInfo lineInfo = doc.getFirstLineInfo();
View Full Code Here

*/
public class SearchModelTests extends TestCase {

  private static AppContext createMockContext() {
    AppContext mockContext = EasyMock.createMock(AppContext.class);
    Resources mockResources = EasyMock.createMock(Resources.class);
    Css mockCss = EasyMock.createMock(Css.class);

    expect(mockContext.getResources()).andReturn(mockResources).anyTimes();
    expect(mockResources.searchMatchRendererCss()).andReturn(mockCss).anyTimes();
    expect(mockCss.match()).andReturn("match").anyTimes();

    replay(mockCss, mockResources, mockContext);
    return mockContext;
  }
View Full Code Here

  @Override
  public void gwtSetUp() throws Exception {
    super.gwtSetUp();
    if (!codeMirrorIsLoaded()) {
      Resources resources = GWT.create(Resources.class);
      String js = CodeMirror2.getJs(resources);

      JsDocument jsDocument = JsBrowser.getDocument();
      Element scriptElem = jsDocument.createElement("script");
      scriptElem.setId(INJECTED_CODE_MIRROR_JS);
View Full Code Here

  }
 

  public void initialize(DemoView view, final ClientPluginService plugins) {
    this.view = view;
    final Resources res = appContext.getResources();
    WorkspaceShell.View workspaceShellView = new WorkspaceShell.View(res, false);
    workspacePlace = WorkspacePlace.PLACE; // Used to come from event...
    workspacePlace.setIsStrict(false);
    FileTreeController<?> fileTreeController = new AppContextFileTreeController(appContext);
    FileTreeModelNetworkController.OutgoingController fileTreeModelOutgoingNetworkController = new FileTreeModelNetworkController.OutgoingController(
View Full Code Here

TOP

Related Classes of com.google.collide.client.Resources

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.