OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library test.integration.analysis; | 5 library test.integration.analysis; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 import 'dart:convert'; | 9 import 'dart:convert'; |
10 import 'dart:io'; | 10 import 'dart:io'; |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 if (diagnosticPort != null) { | 623 if (diagnosticPort != null) { |
624 arguments.add('--port'); | 624 arguments.add('--port'); |
625 arguments.add(diagnosticPort.toString()); | 625 arguments.add(diagnosticPort.toString()); |
626 } | 626 } |
627 if (useAnalysisHighlight2) { | 627 if (useAnalysisHighlight2) { |
628 arguments.add('--useAnalysisHighlight2'); | 628 arguments.add('--useAnalysisHighlight2'); |
629 } | 629 } |
630 if (newTaskModel) { | 630 if (newTaskModel) { |
631 arguments.add('--${analysisServer.Driver.ENABLE_NEW_TASK_MODEL}'); | 631 arguments.add('--${analysisServer.Driver.ENABLE_NEW_TASK_MODEL}'); |
632 } | 632 } |
| 633 print('Launching $serverPath'); |
| 634 print('$dartBinary ${arguments.join(' ')}'); |
633 return Process.start(dartBinary, arguments).then((Process process) { | 635 return Process.start(dartBinary, arguments).then((Process process) { |
634 _process = process; | 636 _process = process; |
635 process.exitCode.then((int code) { | 637 process.exitCode.then((int code) { |
636 _recordStdio('TERMINATED WITH EXIT CODE $code'); | 638 _recordStdio('TERMINATED WITH EXIT CODE $code'); |
637 if (code != 0) { | 639 if (code != 0) { |
638 _badDataFromServer(); | 640 _badDataFromServer(); |
639 } | 641 } |
640 }); | 642 }); |
641 }); | 643 }); |
642 } | 644 } |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 void populateMismatches(item, List<MismatchDescriber> mismatches); | 888 void populateMismatches(item, List<MismatchDescriber> mismatches); |
887 | 889 |
888 /** | 890 /** |
889 * Create a [MismatchDescriber] describing a mismatch with a simple string. | 891 * Create a [MismatchDescriber] describing a mismatch with a simple string. |
890 */ | 892 */ |
891 MismatchDescriber simpleDescription(String description) => | 893 MismatchDescriber simpleDescription(String description) => |
892 (Description mismatchDescription) { | 894 (Description mismatchDescription) { |
893 mismatchDescription.add(description); | 895 mismatchDescription.add(description); |
894 }; | 896 }; |
895 } | 897 } |
OLD | NEW |