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

Unified Diff: tests/language/string_split_test.dart

Issue 1289713002: Enable analyzer tests after fixing them for analysis (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | « tests/language/string_interpolation_and_buffer_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/string_split_test.dart
diff --git a/tests/language/string_split_test.dart b/tests/language/string_split_test.dart
index 56189ccf937d70170ca0b73512ff4dcd5f130e5f..8cf00bb1a4aa0565607eeed933f2ec7f71fd1af2 100644
--- a/tests/language/string_split_test.dart
+++ b/tests/language/string_split_test.dart
@@ -8,6 +8,7 @@ import "package:expect/expect.dart";
class EvilMatch implements Match {
int get start => 100000000;
int get end => 3;
+ bool noSuchMethod(Invocation im) {} // To appease dartanalyzer.
}
class EvilIterator implements Iterator {
@@ -20,7 +21,8 @@ class EvilIterable extends Iterable {
}
class EvilPattern implements Pattern {
- Iterable allMatches(String s) => new EvilIterable();
+ Iterable allMatches(String s, [int start=0]) => new EvilIterable();
+ bool noSuchMethod(Invocation im) {} // To appease dartanalyzer.
}
void main() {
« no previous file with comments | « tests/language/string_interpolation_and_buffer_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698