Sign in
webkit
/
WebKit
/
66124254bbe1e8f111e4555e941b3536dea47143
/
.
/
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
;