Package com.google.speedtracer.client.model

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


   *   Parse:50
   *   Parse:50
   *   Parse:50
   */
  public void testNonLayoutSubEvents1NoHint() {
    LayoutEvent input = createLayoutEvent(200);
    input.addChild(createParseHtmlEvent(50));
    input.addChild(createParseHtmlEvent(50));
    input.addChild(createParseHtmlEvent(50));
    test.addInput(input);
    HintletTestHelper.runTest(rule, test);
  }
View Full Code Here


   *   Layout:50
   */
  public void testNonLayoutSubEvents2NoHint() {
    ParseHtmlEvent input = createParseHtmlEvent(2000);
   
    LayoutEvent child1 = createLayoutEvent(50);
    child1.addChild(createParseHtmlEvent(48));
    input.addChild(child1);
   
    LayoutEvent child2 = createLayoutEvent(50);
    child2.addChild(createParseHtmlEvent(48));
    input.addChild(child2);
   
    input.addChild(createLayoutEvent(50));
   
    test.addInput(input);
View Full Code Here

   *     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,
View Full Code Here

  /**
   * A single layout event should not trigger the rule
   * Layout:2000
   */
  public void testSingleLayoutNoHint() {
    LayoutEvent input = createLayoutEvent(2000);
    test.addInput(input);
    HintletTestHelper.runTest(rule, test);
  }
View Full Code Here

TOP

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

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.