Sign in
webkit
/
WebKit
/
436b72e27e0464bf3a61a2b074723e3cc9dee953
/
.
/
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
;