Examples of HintRecord


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

    // does fire a rule, but should not fire a rule related to the proxy bug
    String hintDescription = "The following publicly cacheable resources contain"
        + " a Set-Cookie header. This security vulnerability can cause cookies"
        + " to be shared by multiple users: http://www.google.com";
    HintRecord expectedHint = createHintRecord(hintDescription, HintRecord.SEVERITY_CRITICAL);

    runCacheTest(responseBuilder.getEvent(), DEFAULT_URL, expectedHint);
  }
View Full Code Here

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

    responseBuilder.setResponseHeaderLastModified("Fri, 04 Sep 1998 00:00:00 GMT");

    String hintDescription = "The following publicly cacheable resources contain"
        + " a Set-Cookie header. This security vulnerability can cause cookies"
        + " to be shared by multiple users: http://www.google.com";
    HintRecord expectedHint = createHintRecord(hintDescription, HintRecord.SEVERITY_CRITICAL);

    runCacheTest(responseBuilder.getEvent(), DEFAULT_URL, expectedHint);
  }
View Full Code Here

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

  /**
   * Capture from a live browser triggers the rule
   */
  public void testRealDataWithHint() {
    String hintDescription = "Event triggered 12 layouts taking 120ms.";
    HintRecord expectedHint = HintRecord.create(
        rule.getHintletName(), 1, HintRecord.SEVERITY_WARNING, hintDescription, 1);
    test.setInputs(getInputsRealTrace()).addExpectedHint(expectedHint);
    HintletTestHelper.runTest(rule, test);
  }
View Full Code Here

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

      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,
            HintRecord.SEVERITY_WARNING, hintDescription,
            HintletEventRecordBuilder.DEFAULT_SEQUENCE);

    test.addInput(input).addExpectedHint(expectedHint);
View Full Code Here

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

    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,
            HintletEventRecordBuilder.DEFAULT_SEQUENCE);

    test.addInput(input).addExpectedHint(expectedHint);
View Full Code Here

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

    input.addChild(createLayoutEvent(50));
    input.addChild(createLayoutEvent(50));
    input.addChild(createLayoutEvent(50));

    String hintDescription = "Event triggered 3 layouts taking 150ms.";
    HintRecord expectedHint =
        HintRecord.create(rule.getHintletName(), HintletEventRecordBuilder.DEFAULT_TIME,
            HintRecord.SEVERITY_WARNING, hintDescription,
            HintletEventRecordBuilder.DEFAULT_SEQUENCE);

    test.addInput(input).addExpectedHint(expectedHint);
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.