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(200.20000076293945, 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(197, 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, -200.20000076293945, "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(200.20000076293945, 200.20000076293945, "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(206.5, 200.20000076293945, "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(197, 197, "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.200000762939453, "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(-200.20000076293945, -206.4000005722046, "Measure from most recent mark to navigationStart should have longer duration.")
    at Test.<anonymous> ( /user-timing/resources/webperftestharness.js:113:27)