Examples of DebugModule


Examples of com.google.jstestdriver.guice.DebugModule

*/
public class JsTestDriverModuleTest extends TestCase {
  public void testGetActionRunnerWithoutXmlPrinter() throws Exception {
    FlagsImpl flags = new FlagsImpl();
    Guice.createInjector(new TestResultPrintingModule(),
        new DebugModule(false),
        new JsTestDriverModule(flags,
        Collections.<FileInfo>emptySet(),
        "http://foo",
        "http://foo",
        System.out,
View Full Code Here

Examples of com.google.jstestdriver.guice.DebugModule

  }

  public void testGetActionRunnerWithXmlWriter() throws Exception {
    FlagsImpl flags = new FlagsImpl();
    Guice.createInjector(new TestResultPrintingModule(),
        new DebugModule(false),
        new JsTestDriverModule(flags,
        Collections.<FileInfo>emptySet(),
        "http://foo",
        "https://foo",
        System.out,
View Full Code Here

Examples of com.google.jstestdriver.guice.DebugModule

            Collections.<FileInfo>emptyList(),
            Collections.<FileInfo>emptyList(),
            new JsonArray());

    final Injector injector = Guice.createInjector(Lists.newArrayList(coverage, printStream,
        new DebugModule(false), jsTestDriverModule));

    injector.getInstance(ActionRunner.class);

    List<Action> actions = injector.getInstance(new Key<List<Action>>() {});
View Full Code Here

Examples of com.google.jstestdriver.guice.DebugModule

      final Module module = initializer.initializeModule(flags, resolvedConfiguration);
      modules.add(module);
    }

    modules.add(new HtmlDocModule()); // by default the html plugin is installed.
    modules.add(new DebugModule(runnerMode.isDebug()));
    String serverAddress = resolvedConfiguration.getServer(
        flags.getServer(),
        flags.getPort(),
        flags.getServerHandlerPrefix());
    String captureAddress = resolvedConfiguration.getCaptureAddress(
View Full Code Here

Examples of flash.swf.debug.DebugModule

   */
  public void processLineRecord(ActionLocation where, LineRecord r)
  {
    int line = r.lineno;
    String func = (where.function == null) ? null : where.function.name;
    DebugModule dm = r.module;

    // locate the source file
    int id = -1;
    DModule module;

View Full Code Here

Examples of flash.swf.debug.DebugModule

        }
  }

    public void printLines(LineRecord lr, PrintWriter out)
    {
        DebugModule script = lr.module;

        if (script != null)
        {
            int lineno = lr.lineno;
            if (lineno > 0)
View Full Code Here

Examples of flash.swf.debug.DebugModule

  private String[] pool;

  public DebugModule getDebugModule(int offset)
  {
    DebugModule d = (DebugModule) modules.get(offset);
    if (d == null)
    {
      return null;
    }
    else
View Full Code Here

Examples of flash.swf.debug.DebugModule

      String __Packages = idRef(tag.sprite);
      className = (__Packages != null && __Packages.startsWith("__Packages")) ? __Packages.substring(11) : null; // length("__Packages.") = 11

      if (isRegisterClass(tag.actionList))
      {
        DebugModule dm = new DebugModule();
        // C: We actually want the class name here, not the linkage ID.
        dm.name = "<" + __Packages + ".2>";
        // C: We want the class name as the second input argument. Fortunately, we don't
        //    really do anything with the source, so it's okay.
        dm.setText("Object.registerClass(" + __Packages + ", " + __Packages + ");");
        dm.bitmap = 1;

        LineRecord lr = new LineRecord(1, dm);

        int startOffset = tag.actionList.getOffset(0);
        dm.addOffset(lr, startOffset);

        tag.actionList.insert(startOffset, lr);
        modules.put((int) (Math.random() * Integer.MAX_VALUE), dm);
      }
    }
View Full Code Here

Examples of flash.swf.debug.DebugModule

    for (int i=0; i < c.size(); i++)
    {
      Action a = c.getAction(i);

      DebugModule temp = null;

      switch (a.code)
      {
      case ActionConstants.sactionDefineFunction:
      case ActionConstants.sactionDefineFunction2:
View Full Code Here

Examples of flash.swf.debug.DebugModule

    }

    // interprets the actions. try to assign names to anonymous functions...
    evalActions(c);

    DebugModule d = findDebugModule(c);

    String emptyMethodName = null;

    // loop again, this time, we register all the actions...
    for (int i=0; i < c.size(); i++)
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.