This reverts commit cb378edc9e.
This commit is contained in:
@@ -50,7 +50,7 @@ class VMServiceFlutterDriver extends FlutterDriver {
|
||||
// TODO(awdavies): Use something other than print. On fuchsia
|
||||
// `stderr`/`stdout` appear to have issues working correctly.
|
||||
driverLog = (String source, String message) {
|
||||
print('$source: $message'); // ignore: avoid_print
|
||||
print('$source: $message');
|
||||
};
|
||||
fuchsiaModuleTarget ??= Platform.environment['FUCHSIA_MODULE_TARGET'];
|
||||
if (fuchsiaModuleTarget == null) {
|
||||
|
||||
@@ -222,7 +222,11 @@ class WebFlutterDriver extends FlutterDriver {
|
||||
class FlutterWebConnection {
|
||||
/// Creates a FlutterWebConnection with WebDriver
|
||||
/// and whether the WebDriver supports timeline action.
|
||||
FlutterWebConnection(this._driver, this.supportsTimelineAction);
|
||||
FlutterWebConnection(this._driver, this.supportsTimelineAction) {
|
||||
_driver.logs.get(async_io.LogType.browser).listen((async_io.LogEntry entry) {
|
||||
print('[${entry.level}]: ${entry.message}');
|
||||
});
|
||||
}
|
||||
|
||||
final async_io.WebDriver _driver;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ void tryToDelete(Directory directory) {
|
||||
try {
|
||||
directory.deleteSync(recursive: true);
|
||||
} on FileSystemException catch (error) {
|
||||
driverLog('test', 'Failed to delete ${directory.path}: $error');
|
||||
print('Failed to delete ${directory.path}: $error');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user