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

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

Issue 1533693003: - Fix usage of Platform.packageRoot. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync to latest Created 5 years 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/codegen/tools.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 findRoot(Platform.script.toFilePath(windows: Platform.isWindows)); 606 findRoot(Platform.script.toFilePath(windows: Platform.isWindows));
607 String serverPath = normalize(join(rootDir, 'bin', 'server.dart')); 607 String serverPath = normalize(join(rootDir, 'bin', 'server.dart'));
608 List<String> arguments = []; 608 List<String> arguments = [];
609 if (debugServer) { 609 if (debugServer) {
610 arguments.add('--debug'); 610 arguments.add('--debug');
611 } 611 }
612 if (profileServer) { 612 if (profileServer) {
613 arguments.add('--observe'); 613 arguments.add('--observe');
614 arguments.add('--pause-isolates-on-exit'); 614 arguments.add('--pause-isolates-on-exit');
615 } 615 }
616 if (Platform.packageRoot.isNotEmpty) { 616 if (Platform.packageRoot != null) {
617 arguments.add('--package-root=${Platform.packageRoot}'); 617 arguments.add('--package-root=${Platform.packageRoot}');
618 } 618 }
619 arguments.add('--checked'); 619 arguments.add('--checked');
620 arguments.add(serverPath); 620 arguments.add(serverPath);
621 if (diagnosticPort != null) { 621 if (diagnosticPort != null) {
622 arguments.add('--port'); 622 arguments.add('--port');
623 arguments.add(diagnosticPort.toString()); 623 arguments.add(diagnosticPort.toString());
624 } 624 }
625 if (useAnalysisHighlight2) { 625 if (useAnalysisHighlight2) {
626 arguments.add('--useAnalysisHighlight2'); 626 arguments.add('--useAnalysisHighlight2');
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 void populateMismatches(item, List<MismatchDescriber> mismatches); 883 void populateMismatches(item, List<MismatchDescriber> mismatches);
884 884
885 /** 885 /**
886 * Create a [MismatchDescriber] describing a mismatch with a simple string. 886 * Create a [MismatchDescriber] describing a mismatch with a simple string.
887 */ 887 */
888 MismatchDescriber simpleDescription(String description) => 888 MismatchDescriber simpleDescription(String description) =>
889 (Description mismatchDescription) { 889 (Description mismatchDescription) {
890 mismatchDescription.add(description); 890 mismatchDescription.add(description);
891 }; 891 };
892 } 892 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/codegen/tools.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698