microbenchmarks: single-line JSON; consolidate #7433 workaround (#7450)

- output single-line JSON because iOS 9.x cannot output more than one line
- move the workaround for #7433 into LiveTestWidgetsFlutterBinding so that it works in all cases (e.g. animation_bench.dart on iOS)
This commit is contained in:
Yegor
2017-01-11 14:29:21 -08:00
committed by GitHub
parent a27192fe67
commit 0c7a9da98f
5 changed files with 6 additions and 9 deletions

View File

@@ -41,10 +41,7 @@ TaskFunction createMicrobenchmarkTask() {
allResults.addAll(await _runMicrobench('lib/stocks/layout_bench.dart'));
allResults.addAll(await _runMicrobench('lib/stocks/build_bench.dart'));
allResults.addAll(await _runMicrobench('lib/gestures/velocity_tracker_bench.dart'));
if (deviceOperatingSystem == DeviceOperatingSystem.android) {
// TODO(yjbanov): Run on iOS when https://github.com/flutter/flutter/issues/7433 is fixed.
allResults.addAll(await _runMicrobench('lib/stocks/animation_bench.dart'));
}
allResults.addAll(await _runMicrobench('lib/stocks/animation_bench.dart'));
return new TaskResult.success(allResults, benchmarkScoreKeys: allResults.keys.toList());
};