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

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

Issue 1381033002: Add data-URI support class to dart:core (next to Uri). (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove VM assertion that appears to be incorrect. Created 5 years, 1 month 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) 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 "path.dart"; 10 import "path.dart";
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 print(''); 875 print('');
876 } 876 }
877 } 877 }
878 878
879 879
880 /** 880 /**
881 * Find the test option specification for a given option key. 881 * Find the test option specification for a given option key.
882 */ 882 */
883 _TestOptionSpecification _getSpecification(String name) { 883 _TestOptionSpecification _getSpecification(String name) {
884 for (var option in _options) { 884 for (var option in _options) {
885 if (option.keys.any((key) => key == name)) { 885 if (option.keys.contains(name)) {
886 return option; 886 return option;
887 } 887 }
888 } 888 }
889 print('Unknown test option $name'); 889 print('Unknown test option $name');
890 exit(1); 890 exit(1);
891 } 891 }
892 892
893 893
894 List<_TestOptionSpecification> _options; 894 List<_TestOptionSpecification> _options;
895 } 895 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698