script : Return PerformanceMark object from the Performance.mark()#44199
Conversation
Signed-off-by: Shubham Gupta <shubham.gupta@chromium.org>
Signed-off-by: Shubham Gupta <shubham.gupta@chromium.org>
| expected: FAIL | ||
|
|
||
| [Test PerformanceMark existence and feature detection] | ||
| expected: FAIL |
There was a problem hiding this comment.
Refer: #43753 (comment)
I will handle soon in follow-up PR.
There was a problem hiding this comment.
I believe this functionality was implemented in #43990, so I'm not sure what this comment refers to.
There was a problem hiding this comment.
#43990 fixed another (unrelated) todo.
The performance.mark and performance.measure APIs sometimes return a value and sometimes they return nothing, depending on the version of the specification implemented. The test thinks that we implement L2, but we implement L3, just not fully.
See also the relevant test:
Previously we never returned a value and didn't expose details (so we passed).
Now we always return a value, but still don't expose details (so we fail).
But presumably, returning the mark is less likely to break things than returning nothing.
There was a problem hiding this comment.
Yeah, I found that too. 👍
This returns the
PerformanceMarkobject from Performance.mark()Testing: More WPT tests passed