Implement console.count/countReset (#31635)

* Implement console.count/countReset

* Address review comment

Signed-off-by: syvb <me@iter.ca>

---------

Signed-off-by: syvb <me@iter.ca>
This commit is contained in:
Smitty 2024-03-17 05:50:40 -04:00 committed by GitHub
parent f98975bbbe
commit d2dcb20bea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 46 additions and 72 deletions

View file

@ -1,16 +1,4 @@
[console-label-conversion.any.html]
[console.count()'s label gets converted to string via label.toString() when label is an object]
expected: FAIL
[console.count() throws exceptions generated by erroneous label.toString() conversion]
expected: FAIL
[console.countReset()'s label gets converted to string via label.toString() when label is an object]
expected: FAIL
[console.countReset() throws exceptions generated by erroneous label.toString() conversion]
expected: FAIL
[console.timeLog()'s label gets converted to string via label.toString() when label is an object]
expected: FAIL
@ -19,18 +7,6 @@
[console-label-conversion.any.worker.html]
[console.count()'s label gets converted to string via label.toString() when label is an object]
expected: FAIL
[console.count() throws exceptions generated by erroneous label.toString() conversion]
expected: FAIL
[console.countReset()'s label gets converted to string via label.toString() when label is an object]
expected: FAIL
[console.countReset() throws exceptions generated by erroneous label.toString() conversion]
expected: FAIL
[console.timeLog()'s label gets converted to string via label.toString() when label is an object]
expected: FAIL

View file

@ -17,12 +17,6 @@
[console namespace: operation dirxml(any...)]
expected: FAIL
[console namespace: operation count(optional DOMString)]
expected: FAIL
[console namespace: operation countReset(optional DOMString)]
expected: FAIL
[console namespace: operation time(optional DOMString)]
expected: FAIL
@ -52,12 +46,6 @@
[console namespace: operation dirxml(any...)]
expected: FAIL
[console namespace: operation count(optional DOMString)]
expected: FAIL
[console namespace: operation countReset(optional DOMString)]
expected: FAIL
[console namespace: operation time(optional DOMString)]
expected: FAIL

View file

@ -1,16 +1,4 @@
[console-label-conversion.any.html]
[console.count()'s label gets converted to string via label.toString() when label is an object]
expected: FAIL
[console.count() throws exceptions generated by erroneous label.toString() conversion]
expected: FAIL
[console.countReset()'s label gets converted to string via label.toString() when label is an object]
expected: FAIL
[console.countReset() throws exceptions generated by erroneous label.toString() conversion]
expected: FAIL
[console.timeLog()'s label gets converted to string via label.toString() when label is an object]
expected: FAIL
@ -19,18 +7,6 @@
[console-label-conversion.any.worker.html]
[console.count()'s label gets converted to string via label.toString() when label is an object]
expected: FAIL
[console.count() throws exceptions generated by erroneous label.toString() conversion]
expected: FAIL
[console.countReset()'s label gets converted to string via label.toString() when label is an object]
expected: FAIL
[console.countReset() throws exceptions generated by erroneous label.toString() conversion]
expected: FAIL
[console.timeLog()'s label gets converted to string via label.toString() when label is an object]
expected: FAIL

View file

@ -17,12 +17,6 @@
[console namespace: operation dirxml(any...)]
expected: FAIL
[console namespace: operation count(optional DOMString)]
expected: FAIL
[console namespace: operation countReset(optional DOMString)]
expected: FAIL
[console namespace: operation time(optional DOMString)]
expected: FAIL
@ -52,12 +46,6 @@
[console namespace: operation dirxml(any...)]
expected: FAIL
[console namespace: operation count(optional DOMString)]
expected: FAIL
[console namespace: operation countReset(optional DOMString)]
expected: FAIL
[console namespace: operation time(optional DOMString)]
expected: FAIL