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

Side by Side Diff: pkg/analysis_server/test/integration/integration_tests.dart

Issue 1389473002: only send final completion notification (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: update test to reflect new reality Created 5 years, 2 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 unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698