Sign in
webkit
/
WebKit
/
36f2b40ab7a77a55ad95fd9774a954dcad7e6be8
/
.
/
Websites
/
perf.webkit.org
/
server-tests
/
resources
/
mock-logger.js
blob: 4aedba38921931465c831075695b966dfd1c529e [
file
] [
log
] [
blame
]
'use strict'
;
class
MockLogger
{
constructor
()
{
this
.
_logs
=
[];
}
log
(
text
)
{
this
.
_logs
.
push
(
text
);
}
error
(
text
)
{
this
.
_logs
.
push
(
text
);
}
}
if
(
typeof
module
!=
'undefined'
)
module
.
exports
.
MockLogger
=
MockLogger
;