chore: dartfmt Dart code in the repo
This commit is contained in:
@ -1,2 +1,3 @@
|
||||
export './common.dart';
|
||||
export './src/webdriver/async_webdriver_adapter.dart' show AsyncWebDriverAdapter;
|
||||
export './src/webdriver/async_webdriver_adapter.dart'
|
||||
show AsyncWebDriverAdapter;
|
||||
|
@ -13,7 +13,7 @@ class AsyncWebDriverAdapter extends WebDriverAdapter {
|
||||
}
|
||||
|
||||
Future executeScript(String script) {
|
||||
return _driver.execute(script, const[]);
|
||||
return _driver.execute(script, const []);
|
||||
}
|
||||
|
||||
Future<Map> capabilities() {
|
||||
@ -21,12 +21,11 @@ class AsyncWebDriverAdapter extends WebDriverAdapter {
|
||||
}
|
||||
|
||||
Future<List<Map>> logs(String type) {
|
||||
return _driver.logs.get(type)
|
||||
.map((LogEntry entry) => {
|
||||
'message': entry.message
|
||||
})
|
||||
.fold(<Map>[], (log, Map entry) {
|
||||
return log..add(entry);
|
||||
});
|
||||
return _driver.logs
|
||||
.get(type)
|
||||
.map((LogEntry entry) => {'message': entry.message})
|
||||
.fold(<Map>[], (log, Map entry) {
|
||||
return log..add(entry);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user