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

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

Issue 252653007: Add clear_browser_cache flag to test.dart (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « tools/testing/dart/browser_controller.dart ('k') | no next file » | 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 library test_options_parser; 5 library test_options_parser;
6 6
7 import "dart:io"; 7 import "dart:io";
8 import "drt_updater.dart"; 8 import "drt_updater.dart";
9 import "test_suite.dart"; 9 import "test_suite.dart";
10 import "compiler_configuration.dart" show CompilerConfiguration; 10 import "compiler_configuration.dart" show CompilerConfiguration;
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 false, 328 false,
329 type: 'bool'), 329 type: 'bool'),
330 new _TestOptionSpecification( 330 new _TestOptionSpecification(
331 'clear_safari_cache', 331 'clear_safari_cache',
332 'Clear the safari cache (i.e., delete it).', 332 'Clear the safari cache (i.e., delete it).',
333 ['--clear_safari_cache'], 333 ['--clear_safari_cache'],
334 [], 334 [],
335 false, 335 false,
336 type: 'bool'), 336 type: 'bool'),
337 new _TestOptionSpecification( 337 new _TestOptionSpecification(
338 'clear_browser_cache',
339 'Browser specific clearing of caches(i.e., delete it).',
340 ['--clear_browser_cache'],
341 [],
342 false,
343 type: 'bool'),
344 new _TestOptionSpecification(
338 'copy_coredumps', 345 'copy_coredumps',
339 'If we see a crash that we did not expect, copy the core dumps. ' 346 'If we see a crash that we did not expect, copy the core dumps. '
340 'to /tmp', 347 'to /tmp',
341 ['--copy-coredumps'], 348 ['--copy-coredumps'],
342 [], 349 [],
343 false, 350 false,
344 type: 'bool'), 351 type: 'bool'),
345 new _TestOptionSpecification( 352 new _TestOptionSpecification(
346 'local_ip', 353 'local_ip',
347 'IP address the http servers should listen on.' 354 'IP address the http servers should listen on.'
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 String compiler = configuration['compiler']; 676 String compiler = configuration['compiler'];
670 configuration['browser'] = TestUtils.isBrowserRuntime(runtime); 677 configuration['browser'] = TestUtils.isBrowserRuntime(runtime);
671 configuration['analyzer'] = TestUtils.isCommandLineAnalyzer(compiler); 678 configuration['analyzer'] = TestUtils.isCommandLineAnalyzer(compiler);
672 679
673 // Set the javascript command line flag for less verbose status files. 680 // Set the javascript command line flag for less verbose status files.
674 configuration['jscl'] = TestUtils.isJsCommandLineRuntime(runtime); 681 configuration['jscl'] = TestUtils.isJsCommandLineRuntime(runtime);
675 682
676 // Allow suppression that is valid for all ie versions 683 // Allow suppression that is valid for all ie versions
677 configuration['ie'] = runtime.startsWith('ie'); 684 configuration['ie'] = runtime.startsWith('ie');
678 685
686 // Temporary grace period for clear_safaci_cache
687 // See issue 18478
688 if (configuration['clear_safari_cache']) {
689 configuration['clear_browser_cache'] = true;
690 }
691
679 // Expand the test selectors into a suite name and a simple 692 // Expand the test selectors into a suite name and a simple
680 // regular expressions to be used on the full path of a test file 693 // regular expressions to be used on the full path of a test file
681 // in that test suite. If no selectors are explicitly given use 694 // in that test suite. If no selectors are explicitly given use
682 // the default suite patterns. 695 // the default suite patterns.
683 var selectors = configuration['selectors']; 696 var selectors = configuration['selectors'];
684 if (selectors is !Map) { 697 if (selectors is !Map) {
685 if (selectors == null) { 698 if (selectors == null) {
686 selectors = new List.from(defaultTestSelectors); 699 selectors = new List.from(defaultTestSelectors);
687 var exclude_suites = configuration['exclude_suite'] != null ? 700 var exclude_suites = configuration['exclude_suite'] != null ?
688 configuration['exclude_suite'].split(',') : []; 701 configuration['exclude_suite'].split(',') : [];
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 return option; 840 return option;
828 } 841 }
829 } 842 }
830 print('Unknown test option $name'); 843 print('Unknown test option $name');
831 exit(1); 844 exit(1);
832 } 845 }
833 846
834 847
835 List<_TestOptionSpecification> _options; 848 List<_TestOptionSpecification> _options;
836 } 849 }
OLDNEW
« no previous file with comments | « tools/testing/dart/browser_controller.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698