コード例 #1
0
  protected static void init(final UITestContext context) {
    sContext = context;
    sSolo = context.getSolo();

    sAppMenu = (AppMenuComponent) context.getComponent(ComponentType.APPMENU);
    sToolbar = (ToolbarComponent) context.getComponent(ComponentType.TOOLBAR);
  }
コード例 #2
0
  /** Returns a new URL with the docshell HTTP server host prefix. */
  public static String adjustUrl(final String url) {
    fAssertNotNull("url is not null", url);

    if (url.startsWith("about:") || url.startsWith("chrome:")) {
      return url;
    }

    return sContext.getAbsoluteHostnameUrl(url);
  }
コード例 #3
0
 protected static void init(final UITestContext context) {
   sSolo = context.getSolo();
 }