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

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

Issue 2947473002: Basic support for dev_compiler in test.dart. (Closed)
Patch Set: Revise. Created 3 years, 6 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 | « tests/lib_strong/lib_strong.status ('k') | tools/testing/dart/browser_test.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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:core'; 7 import 'dart:core';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:math'; 9 import 'dart:math';
10 10
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 } 495 }
496 }); 496 });
497 } 497 }
498 }; 498 };
499 var args = [ 499 var args = [
500 "--user-data-dir=${userDir.path}", 500 "--user-data-dir=${userDir.path}",
501 url, 501 url,
502 "--disable-extensions", 502 "--disable-extensions",
503 "--disable-popup-blocking", 503 "--disable-popup-blocking",
504 "--bwsi", 504 "--bwsi",
505 "--no-first-run" 505 "--no-first-run",
506 ]; 506 ];
507
508 // TODO(rnystrom): If you want Chrome to spawn with the dev tools tab
509 // open, which is handy for debugging, add:
510 //
511 // --auto-open-devtools-for-tabs
512
507 return startBrowserProcess(_binary, args, 513 return startBrowserProcess(_binary, args,
508 environment: _getEnvironment()); 514 environment: _getEnvironment());
509 }); 515 });
510 }).catchError((e) { 516 }).catchError((e) {
511 _logEvent("Running $_binary --version failed with $e"); 517 _logEvent("Running $_binary --version failed with $e");
512 return false; 518 return false;
513 }); 519 });
514 } 520 }
515 521
516 String toString() => "Chrome"; 522 String toString() => "Chrome";
(...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1940 'exit code: ${result.exitCode}\n' 1946 'exit code: ${result.exitCode}\n'
1941 'stdout: ${result.stdout}\n' 1947 'stdout: ${result.stdout}\n'
1942 'stderr: ${result.stderr}'); 1948 'stderr: ${result.stderr}');
1943 } else { 1949 } else {
1944 print('[$message] Successfully uploaded screenshot to $storageUrl'); 1950 print('[$message] Successfully uploaded screenshot to $storageUrl');
1945 } 1951 }
1946 new File(screenshotFile).deleteSync(); 1952 new File(screenshotFile).deleteSync();
1947 } 1953 }
1948 print('--------------------------------------------------------------------'); 1954 print('--------------------------------------------------------------------');
1949 } 1955 }
OLDNEW
« no previous file with comments | « tests/lib_strong/lib_strong.status ('k') | tools/testing/dart/browser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698