Sign in
webkit
/
WebKit
/
297711b094ec68dd7a1a5da79f991042793c1740
/
.
/
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
;