haikuwebkit/LayoutTests/performance-api/performance-measure-name-ex...

24 lines
1.3 KiB
Plaintext

Tests performance.measure startName/endName must exist.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS performance.mark("existing-mark-name") did not throw exception.
PASS performance.measure("measure-name", "x") threw exception SyntaxError: No mark named 'x' exists.
PASS performance.measure("measure-name", "existing-mark-name", "x") threw exception SyntaxError: No mark named 'x' exists.
PASS performance.mark("x") did not throw exception.
PASS performance.measure("measure-name", "x") did not throw exception.
PASS performance.measure("measure-name", "existing-mark-name", "x") did not throw exception.
Starting worker: resources/measure-name.js
PASS [Worker] performance.mark("existing-mark-name") did not throw exception.
PASS [Worker] performance.measure("measure-name", "x") threw exception SyntaxError: No mark named 'x' exists.
PASS [Worker] performance.measure("measure-name", "existing-mark-name", "x") threw exception SyntaxError: No mark named 'x' exists.
PASS [Worker] performance.mark("x") did not throw exception.
PASS [Worker] performance.measure("measure-name", "x") did not throw exception.
PASS [Worker] performance.measure("measure-name", "existing-mark-name", "x") did not throw exception.
PASS successfullyParsed is true
TEST COMPLETE