From f61a5b2f7543931d069728e277bd906308cdb84d Mon Sep 17 00:00:00 2001 From: "Jay.Udey" Date: Fri, 3 Nov 2017 10:21:03 -0500 Subject: [PATCH] updating coverage content_shell window size to match the dart test runner --- lib/src/tasks/coverage/api.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/tasks/coverage/api.dart b/lib/src/tasks/coverage/api.dart index 7b59bcaf..4e686bab 100644 --- a/lib/src/tasks/coverage/api.dart +++ b/lib/src/tasks/coverage/api.dart @@ -546,7 +546,9 @@ class CoverageTask extends Task { // Run the test in content-shell. String executable = 'content_shell'; - List args = [testPath]; + // The window size is specified to correspond to the size of the window in the + // dart test package, https://github.com/dart-lang/test/blob/ec1b57647df74293d7a71316020e39702735b3f7/CHANGELOG.md#012201 + List args = ['--content-shell-host-window-size=1024x768', testPath]; _coverageOutput.add(''); _coverageOutput.add('Running test suite ${testPath}'); _coverageOutput.add('$executable ${args.join(' ')}\n');