Package com.google.speedtracer.client.model

Examples of com.google.speedtracer.client.model.DomEvent


   *   12 each:
   *     Layout:10
   *     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 =
        HintRecord.create(rule.getHintletName(), HintletEventRecordBuilder.DEFAULT_TIME,
View Full Code Here


   * No Layout event, should not trigger
   * 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

   *     GC:45
   *   Layout:155
   *     GC:45
   */
  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);

    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

Related Classes of com.google.speedtracer.client.model.DomEvent

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.