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

Unified Diff: test/testing.dart

Issue 1395643004: remove most of the StrongOptions (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebase Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/checker/inferred_type_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/testing.dart
diff --git a/test/testing.dart b/test/testing.dart
index a28328dd4667ab153bdc3ce6fe9be7ed14cdcb8c..6874ed3c0893cbf932fbf5cf1d22f4f865b29849 100644
--- a/test/testing.dart
+++ b/test/testing.dart
@@ -73,11 +73,7 @@ class _TestUtils {}
/// });
///
void testChecker(String name, Map<String, String> testFiles,
- {String sdkDir,
- customUrlMappings: const {},
- relaxedCasts: true,
- inferDownwards: StrongModeOptions.inferDownwardsDefault,
- inferTransitively: StrongModeOptions.inferTransitivelyDefault}) {
+ {String sdkDir, customUrlMappings: const {}}) {
test(name, () {
expect(testFiles.containsKey('/main.dart'), isTrue,
reason: '`/main.dart` is missing in testFiles');
@@ -95,13 +91,8 @@ void testChecker(String name, Map<String, String> testFiles,
dartSdkPath: sdkDir),
fileResolvers: [uriResolver]);
- var checker = new StrongChecker(
- context,
- new StrongModeOptions(
- relaxedCasts: relaxedCasts,
- inferDownwards: inferDownwards,
- inferTransitively: inferTransitively,
- hints: true));
+ var checker =
+ new StrongChecker(context, new StrongModeOptions(hints: true));
// Run the checker on /main.dart.
var mainSource = uriResolver.resolveAbsolute(new Uri.file('/main.dart'));
« no previous file with comments | « test/checker/inferred_type_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698