Examples of PluginMeta


Examples of com.google.caja.plugin.PluginMeta

    // namespace from parent.
    assertTrue(mq.getMessages().isEmpty());
  }

  private void assertFixed(String golden, Job... inputs) {
    Jobs jobs = new Jobs(mc, mq, new PluginMeta());
    for (Job input : inputs) {
      jobs.getJobs().add(JobEnvelope.of(input));
    }
    new LegacyNamespaceFixupStage().apply(jobs);
    StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of com.google.caja.plugin.PluginMeta

  @Override
  protected boolean runPipeline(Jobs jobs) {
    return new OptimizeJavascriptStage().apply(jobs)
        && new ValidateJavascriptStage(new ModuleManager(
                new PluginMeta(), TestBuildInfo.getInstance(),
                UriFetcher.NULL_NETWORK, mq))
            .apply(jobs)
        && discardBoilerPlate(jobs);
  }
View Full Code Here

Examples of com.google.caja.plugin.PluginMeta

    assertContains(js, "'precajoled': 'cached:dalmatian true'");
    assertNoWarnings();
  }

  private PluginCompiler makeCompiler(boolean minify) {
    PluginMeta meta = new PluginMeta(
        UriFetcher.NULL_NETWORK, UriPolicy.IDENTITY);
    meta.setPrecajoleMap(new MockPrecajoleMap());
    meta.setPrecajoleMinify(minify);
    PluginCompiler compiler = new PluginCompiler(
        TestBuildInfo.getInstance(), meta, mq);
    compiler.setMessageContext(mc);
    return compiler;
  }
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.