Package com.google.speedtracer.client.model

Examples of com.google.speedtracer.client.model.DomEvent.addChild()


   *     Paint:10
   */
  public void testManyLayoutsWithHint() {
    DomEvent input = createDomEvent(200);
    for (int i = 0; i < 12; i++) {
      input.addChild(createLayoutEvent(10));
      input.addChild(createPaintEvent(10));
    }

    String hintDescription = "Event triggered 12 layouts taking 120ms.";
    HintRecord expectedHint =
View Full Code Here


   */
  public void testManyLayoutsWithHint() {
    DomEvent input = createDomEvent(200);
    for (int i = 0; i < 12; i++) {
      input.addChild(createLayoutEvent(10));
      input.addChild(createPaintEvent(10));
    }

    String hintDescription = "Event triggered 12 layouts taking 120ms.";
    HintRecord expectedHint =
        HintRecord.create(rule.getHintletName(), HintletEventRecordBuilder.DEFAULT_TIME,
View Full Code Here

   * DomEvent:200
   *   GC: 200
   */
  public void testNoLayoutEventNoHint() {
    DomEvent input = createDomEvent(200);
    input.addChild(createGCEvent(200));
    test.addInput(input);
    HintletTestHelper.runTest(rule, test);
  }

  /**
 
View Full Code Here

  public void testNonLayoutSubEvents3NoHint() {
    DomEvent input = createDomEvent(200);

    LayoutEvent child50 = createLayoutEvent(50);
    child50.addChild(createGCEvent(45));
    input.addChild(child50);

    LayoutEvent child100 = createLayoutEvent(100);
    child100.addChild(createGCEvent(45));
    input.addChild(child100);
View Full Code Here

    child50.addChild(createGCEvent(45));
    input.addChild(child50);

    LayoutEvent child100 = createLayoutEvent(100);
    child100.addChild(createGCEvent(45));
    input.addChild(child100);

    LayoutEvent child155 = createLayoutEvent(155);
    child155.addChild(createGCEvent(45));
    input.addChild(child155);
View Full Code Here

    child100.addChild(createGCEvent(45));
    input.addChild(child100);

    LayoutEvent child155 = createLayoutEvent(155);
    child155.addChild(createGCEvent(45));
    input.addChild(child155);

    String hintDescription = "Event triggered 3 layouts taking 170ms.";
    HintRecord expectedHint =
        HintRecord.create(rule.getHintletName(), HintletEventRecordBuilder.DEFAULT_TIME,
            HintRecord.SEVERITY_WARNING, hintDescription,
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.