Description

This test validates functionality of the interface window.performance.measure using keywords from the Navigation Timing spec.

Summary

Harness status: OK

Found 8 tests

Details

ResultTest NameMessage
PassMeasure of navigationStart to now should be positive value.
Asserts run
Pass
assert_greater_than(308.30000001192093, 0, "Measure of navigationStart to now should be positive value.")
    at Test.<anonymous> ( /user-timing/resources/webperftestharness.js:113:27)
PassMeasure of navigationStart to loadEventEnd should be positive value.
Asserts run
Pass
assert_greater_than(305, 0, "Measure of navigationStart to loadEventEnd should be positive value.")
    at Test.<anonymous> ( /user-timing/resources/webperftestharness.js:113:27)
PassMeasure of current mark to navigationStart should be negative value.
Asserts run
Pass
assert_greater_than(0, -308.19999998807907, "Measure of current mark to navigationStart should be negative value.")
    at Test.<anonymous> ( /user-timing/resources/webperftestharness.js:113:27)
PassloadTime plus loadEventEnd to a mark "a" should equal to navigationStart to "a".
Asserts run
Pass
assert_equals(308.19999998807907, 308.19999998807907, "loadTime plus loadEventEnd to a mark \"a\" should equal to navigationStart to \"a\".")
    at Test.<anonymous> ( /common/performance-timeline-utils.js:32:25)
PassSecond measure of current mark to navigationStart should be negative value.
Asserts run
Pass
assert_greater_than(314.5, 308.30000001192093, "Second measure of current mark to navigationStart should be negative value.")
    at Test.<anonymous> ( /user-timing/resources/webperftestharness.js:113:27)
PassMeasures of loadTime should have same duration.
Asserts run
Pass
assert_equals(305, 305, "Measures of loadTime should have same duration.")
    at Test.<anonymous> ( /common/performance-timeline-utils.js:32:25)
PassMeasure from domComplete event to most recent mark "a" should have longer duration.
Asserts run
Pass
assert_greater_than(9.5, 3.199999988079071, "Measure from domComplete event to most recent mark \"a\" should have longer duration.")
    at Test.<anonymous> ( /user-timing/resources/webperftestharness.js:113:27)
PassMeasure from most recent mark to navigationStart should have longer duration.
Asserts run
Pass
assert_greater_than(-308.19999998807907, -314.5, "Measure from most recent mark to navigationStart should have longer duration.")
    at Test.<anonymous> ( /user-timing/resources/webperftestharness.js:113:27)