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

Side by Side Diff: tools/testing/dart/configuration.dart

Issue 2994073002: Remove support for "packages" URL from testing server. (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « tools/testing/dart/browser_controller.dart ('k') | tools/testing/dart/http_server.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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:convert'; 6 import 'dart:convert';
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'compiler_configuration.dart'; 9 import 'compiler_configuration.dart';
10 import 'http_server.dart'; 10 import 'http_server.dart';
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 363
364 return isValid; 364 return isValid;
365 } 365 }
366 366
367 /// Starts global HTTP servers that serve the entire dart repo. 367 /// Starts global HTTP servers that serve the entire dart repo.
368 /// 368 ///
369 /// The HTTP server is available on `window.location.port`, and a second 369 /// The HTTP server is available on `window.location.port`, and a second
370 /// server for cross-domain tests can be found by calling 370 /// server for cross-domain tests can be found by calling
371 /// `getCrossOriginPortNumber()`. 371 /// `getCrossOriginPortNumber()`.
372 Future startServers() { 372 Future startServers() {
373 _servers = new TestingServers( 373 _servers = new TestingServers(buildDirectory, isCsp, runtime, null);
374 buildDirectory, isCsp, runtime, null, packageRoot, packages);
375 var future = servers.startServers(localIP, 374 var future = servers.startServers(localIP,
376 port: testServerPort, crossOriginPort: testServerCrossOriginPort); 375 port: testServerPort, crossOriginPort: testServerCrossOriginPort);
377 376
378 if (isVerbose) { 377 if (isVerbose) {
379 future = future.then((_) { 378 future = future.then((_) {
380 print('Started HttpServers: ${servers.httpServerCommandLine()}'); 379 print('Started HttpServers: ${servers.httpServerCommandLine()}');
381 }); 380 });
382 } 381 }
383 382
384 return future; 383 return future;
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 731
733 case macos: 732 case macos:
734 return 'xcodebuild/'; 733 return 'xcodebuild/';
735 } 734 }
736 735
737 throw "unreachable"; 736 throw "unreachable";
738 } 737 }
739 738
740 String toString() => "System($name)"; 739 String toString() => "System($name)";
741 } 740 }
OLDNEW
« no previous file with comments | « tools/testing/dart/browser_controller.dart ('k') | tools/testing/dart/http_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698