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

Side by Side Diff: pkg/analyzer/test/src/task/general_test.dart

Issue 1507813004: Remove unnecessary 'noSuchMethod' declarations. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.src.task.general_test; 5 library test.src.task.general_test;
6 6
7 import 'package:analyzer/src/generated/engine.dart'; 7 import 'package:analyzer/src/generated/engine.dart';
8 import 'package:analyzer/src/generated/source.dart'; 8 import 'package:analyzer/src/generated/source.dart';
9 import 'package:analyzer/src/task/general.dart'; 9 import 'package:analyzer/src/task/general.dart';
10 import 'package:analyzer/task/general.dart'; 10 import 'package:analyzer/task/general.dart';
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 GetContentTask task = new GetContentTask(context, target); 73 GetContentTask task = new GetContentTask(context, target);
74 when(context.getContents(target)).thenThrow('My exception!'); 74 when(context.getContents(target)).thenThrow('My exception!');
75 task.perform(); 75 task.perform();
76 expect(task.caughtException, isNull); 76 expect(task.caughtException, isNull);
77 expect(task.outputs, hasLength(2)); 77 expect(task.outputs, hasLength(2));
78 expect(task.outputs[CONTENT], ''); 78 expect(task.outputs[CONTENT], '');
79 expect(task.outputs[MODIFICATION_TIME], -1); 79 expect(task.outputs[MODIFICATION_TIME], -1);
80 } 80 }
81 } 81 }
82 82
83 class _MockContext extends TypedMock implements AnalysisContext { 83 class _MockContext extends TypedMock implements AnalysisContext {}
84 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
85 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/task/driver_test.dart ('k') | pkg/analyzer/test/src/task/html_work_manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698