We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39cc013 commit 4349790Copy full SHA for 4349790
test/common/wpt.js
@@ -59,10 +59,13 @@ function codeUnitStr(char) {
59
}
60
61
class ReportResult {
62
+ #startTime;
63
+
64
constructor(name) {
65
this.test = name;
66
this.status = 'OK';
67
this.subtests = [];
68
+ this.#startTime = Date.now();
69
70
71
addSubtest(name, status, message) {
@@ -81,6 +84,7 @@ class ReportResult {
81
84
82
85
finish(status) {
83
86
this.status = status ?? 'OK';
87
+ this.duration = Date.now() - this.#startTime;
88
89
90
0 commit comments