Description

window.performance.measure() method throws a InvalidAccessError whenever a navigation timing attribute with a value of zero is provided as the startMark or endMark.

Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
Passwindow.performance.measure("measure", "loadEventEnd"), where "loadEventEnd" is a navigation timing attribute with a value of 0, throws a InvalidAccessError exception.
Asserts run
Pass
assert_throws_dom("InvalidAccessError", function "function () {        window.performance.measure("measure", zeroedNavTimingAtt);    }")
    at Test.<anonymous> ( /user-timing/measure_exceptions_navigation_timing.html:30:4)
Passwindow.performance.measure("measure", "loadEventEnd", "responseEnd"), where "loadEventEnd" is a navigation timing attribute with a value of 0, throws a InvalidAccessError exception.
Asserts run
Pass
assert_throws_dom("InvalidAccessError", function "function () {        window.performance.measure("measure", zeroedNavTimingAtt, "responseEnd");    }")
    at Test.<anonymous> ( /user-timing/measure_exceptions_navigation_timing.html:38:4)
Passwindow.performance.measure("measure", "navigationStart", "loadEventEnd"), where "loadEventEnd" is a navigation timing attribute with a value of 0, throws a InvalidAccessError exception.
Asserts run
Pass
assert_throws_dom("InvalidAccessError", function "function () {        window.performance.measure("measure", "navigationStart", zeroedNavTimingAtt);    }")
    at Test.<anonymous> ( /user-timing/measure_exceptions_navigation_timing.html:46:4)
Passwindow.performance.measure("measure", "loadEventEnd", "loadEventEnd"), where "loadEventEnd" is a navigation timing attribute with a value of 0, throws a InvalidAccessError exception.
Asserts run
Pass
assert_throws_dom("InvalidAccessError", function "function () {        window.performance.measure("measure", zeroedNavTimingAtt, zeroedNavTimingAtt);    }")
    at Test.<anonymous> ( /user-timing/measure_exceptions_navigation_timing.html:54:4)