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

Unified Diff: pkg/analyzer/test/generated/hint_code_test.dart

Issue 2627083003: Replace reset() arguments with resetWith() invocation. (Closed)
Patch Set: Remove commented code. Created 3 years, 11 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
Index: pkg/analyzer/test/generated/hint_code_test.dart
diff --git a/pkg/analyzer/test/generated/hint_code_test.dart b/pkg/analyzer/test/generated/hint_code_test.dart
index 10e4f5977dcd8d75fcc3329943b330e83b702076..52b0febf25bf92c570fbce05e5e66a5dc5004015 100644
--- a/pkg/analyzer/test/generated/hint_code_test.dart
+++ b/pkg/analyzer/test/generated/hint_code_test.dart
@@ -23,8 +23,8 @@ main() {
@reflectiveTest
class HintCodeTest extends ResolverTestCase {
@override
- void reset({List<List<String>> packages}) {
- super.reset(packages: [
+ void reset() {
+ super.resetWith(packages: [
[
'meta',
r'''
@@ -1760,7 +1760,7 @@ main() {
test_isDouble() async {
AnalysisOptionsImpl options = new AnalysisOptionsImpl();
options.dart2jsHint = true;
- resetWithOptions(options);
+ resetWith(options: options);
Source source = addSource("var v = 1 is double;");
await computeAnalysisResult(source);
assertErrors(source, [HintCode.IS_DOUBLE]);
@@ -1778,7 +1778,7 @@ main() {
test_isNotDouble() async {
AnalysisOptionsImpl options = new AnalysisOptionsImpl();
options.dart2jsHint = true;
- resetWithOptions(options);
+ resetWith(options: options);
Source source = addSource("var v = 1 is! double;");
await computeAnalysisResult(source);
assertErrors(source, [HintCode.IS_NOT_DOUBLE]);
« no previous file with comments | « pkg/analyzer/test/generated/declaration_resolver_test.dart ('k') | pkg/analyzer/test/generated/non_error_resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698