Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement console#time and console#timeEnd methods #9325
Comments
|
I'd like to work on this, since no one has claimed it yet. |
|
Alright! |
|
Are there tests implemented for the other console methods? (And if so, where are they located?) |
I don't think so. |
|
Maybe you can create a new directory: tests/wpt/mozilla/tests/mozilla/console or tests/wpt/mozilla/tests/mozilla/devtools |
|
There is no way to write a WPT test for console methods, unfortunately (since their effects are not observable by web content). We also can't write tests for the console integration with the devtools server until #5971 is complete, so only manual testing is possible right now. |
|
All right. I didn't worry about writing WPT tests for now and just did manual testing. In the early return cases, I was unsure if we wanted to log this with |
Implement console#time and console#timeEnd methods Fixes #9325 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9420) <!-- Reviewable:end -->
Implement console#time and console#timeEnd methods Fixes #9325 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9420) <!-- Reviewable:end -->
https://developer.mozilla.org/en-US/docs/Web/API/Console#Timers
An effort to implement this was started in #6646, but wasn't completed