Index: ui/file_manager/file_manager/common/js/test_importer_common.js |
diff --git a/ui/file_manager/file_manager/common/js/test_importer_common.js b/ui/file_manager/file_manager/common/js/test_importer_common.js |
index a4618672ef389e6f4813569a3b3e011caff5a979..3db007e6eed0b8abc48453bf068c0a5be599033b 100644 |
--- a/ui/file_manager/file_manager/common/js/test_importer_common.js |
+++ b/ui/file_manager/file_manager/common/js/test_importer_common.js |
@@ -21,7 +21,10 @@ importer.setupTestLogger = function() { |
* @struct |
* @final |
*/ |
-importer.TestLogger = function() {}; |
+importer.TestLogger = function() { |
+ /** @public {!TestCallRecorder} */ |
+ this.errorRecorder = new TestCallRecorder(); |
+}; |
/** @override */ |
importer.TestLogger.prototype.info = function(content) { |
@@ -30,6 +33,7 @@ importer.TestLogger.prototype.info = function(content) { |
/** @override */ |
importer.TestLogger.prototype.error = function(content) { |
+ this.errorRecorder.callback(content); |
console.error(content); |
console.error(new Error('Error stack').stack); |
}; |