Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1757)

Unified Diff: tools/testing/dart/status_reporter.dart

Issue 1859973002: Autoformat tools/testing/dart (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Format whole directory Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/testing/dart/status_file_parser.dart ('k') | tools/testing/dart/summary_report.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/status_reporter.dart
diff --git a/tools/testing/dart/status_reporter.dart b/tools/testing/dart/status_reporter.dart
index 58410522be2dd69f50d276be1d8d2893589ef18a..0f5e37bd952a231262047928ba5b896c5d228868 100644
--- a/tools/testing/dart/status_reporter.dart
+++ b/tools/testing/dart/status_reporter.dart
@@ -6,78 +6,78 @@ import 'dart:io';
import 'dart:convert';
List<Map> LINUX_COMBINATIONS = [
- {
- 'runtimes' : ['none'],
- 'modes' : ['release'],
- 'archs' : ['x64'],
- 'compiler' : 'dart2analyzer'
- },
- {
- 'runtimes' : ['vm'],
- 'modes' : ['debug', 'release'],
- 'archs' : ['ia32', 'x64', 'simarm', 'simmips'],
- 'compiler' : 'none'
- },
- {
- 'runtimes' : ['d8', 'jsshell', 'chrome', 'ff'],
- 'modes' : ['release'],
- 'archs' : ['ia32'],
- 'compiler' : 'dart2js'
- },
- {
- 'runtimes' : ['dartium'],
- 'modes' : ['release', 'debug'],
- 'archs' : ['ia32'],
- 'compiler' : 'none'
- },
+ {
+ 'runtimes': ['none'],
+ 'modes': ['release'],
+ 'archs': ['x64'],
+ 'compiler': 'dart2analyzer'
+ },
+ {
+ 'runtimes': ['vm'],
+ 'modes': ['debug', 'release'],
+ 'archs': ['ia32', 'x64', 'simarm', 'simmips'],
+ 'compiler': 'none'
+ },
+ {
+ 'runtimes': ['d8', 'jsshell', 'chrome', 'ff'],
+ 'modes': ['release'],
+ 'archs': ['ia32'],
+ 'compiler': 'dart2js'
+ },
+ {
+ 'runtimes': ['dartium'],
+ 'modes': ['release', 'debug'],
+ 'archs': ['ia32'],
+ 'compiler': 'none'
+ },
];
List<Map> MACOS_COMBINATIONS = [
- {
- 'runtimes' : ['vm'],
- 'modes' : ['debug', 'release'],
- 'archs' : ['ia32', 'x64'],
- 'compiler' : 'none'
- },
- {
- 'runtimes' : ['safari', 'safarimobilesim'],
- 'modes' : ['release'],
- 'archs' : ['ia32'],
- 'compiler' : 'dart2js'
- },
- {
- 'runtimes' : ['dartium'],
- 'modes' : ['release', 'debug'],
- 'archs' : ['ia32'],
- 'compiler' : 'none'
- },
+ {
+ 'runtimes': ['vm'],
+ 'modes': ['debug', 'release'],
+ 'archs': ['ia32', 'x64'],
+ 'compiler': 'none'
+ },
+ {
+ 'runtimes': ['safari', 'safarimobilesim'],
+ 'modes': ['release'],
+ 'archs': ['ia32'],
+ 'compiler': 'dart2js'
+ },
+ {
+ 'runtimes': ['dartium'],
+ 'modes': ['release', 'debug'],
+ 'archs': ['ia32'],
+ 'compiler': 'none'
+ },
];
List<Map> WINDOWS_COMBINATIONS = [
- {
- 'runtimes' : ['vm'],
- 'modes' : ['debug', 'release'],
- 'archs' : ['ia32', 'x64'],
- 'compiler' : 'none'
- },
- {
- 'runtimes' : ['chrome', 'ff', 'ie11', 'ie10'],
- 'modes' : ['release'],
- 'archs' : ['ia32'],
- 'compiler' : 'dart2js'
- },
- {
- 'runtimes' : ['dartium'],
- 'modes' : ['release', 'debug'],
- 'archs' : ['ia32'],
- 'compiler' : 'none'
- },
+ {
+ 'runtimes': ['vm'],
+ 'modes': ['debug', 'release'],
+ 'archs': ['ia32', 'x64'],
+ 'compiler': 'none'
+ },
+ {
+ 'runtimes': ['chrome', 'ff', 'ie11', 'ie10'],
+ 'modes': ['release'],
+ 'archs': ['ia32'],
+ 'compiler': 'dart2js'
+ },
+ {
+ 'runtimes': ['dartium'],
+ 'modes': ['release', 'debug'],
+ 'archs': ['ia32'],
+ 'compiler': 'none'
+ },
];
Map<String, List<Map>> COMBINATIONS = {
- 'linux' : LINUX_COMBINATIONS,
- 'windows' : WINDOWS_COMBINATIONS,
- 'macos' : MACOS_COMBINATIONS
+ 'linux': LINUX_COMBINATIONS,
+ 'windows': WINDOWS_COMBINATIONS,
+ 'macos': MACOS_COMBINATIONS
};
List<Map> getCombinations() {
@@ -165,8 +165,15 @@ void main(List<String> args) {
for (var runtime in combination['runtimes']) {
var compiler = combination['compiler'];
- var args = ['tools/test.py', '-m$mode', '-c$compiler', '-r$runtime',
- '-a$arch', '--report-in-json', '--use-sdk'];
+ var args = [
+ 'tools/test.py',
+ '-m$mode',
+ '-c$compiler',
+ '-r$runtime',
+ '-a$arch',
+ '--report-in-json',
+ '--use-sdk'
+ ];
var result = Process.runSync('python', args);
if (result.exitCode != 0) {
print(result.stdout);
@@ -202,7 +209,7 @@ void main(List<String> args) {
for (var key in keys) {
var value = map[key];
values.add(value);
- var pct = 100*(value/total);
+ var pct = 100 * (value / total);
values.add('${pct.toStringAsFixed(3)}%');
}
« no previous file with comments | « tools/testing/dart/status_file_parser.dart ('k') | tools/testing/dart/summary_report.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698