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

Unified Diff: tests/language/pure_function2_test.dart

Issue 1411243003: Upgrade some tests to use annotations instead of 'clever' confuse() function (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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
Index: tests/language/pure_function2_test.dart
diff --git a/tests/language/pure_function2_test.dart b/tests/language/pure_function2_test.dart
index 1fdf5f076728d7c98475acf1e274bcf6195a8c30..c63d053d419822d2a42f4e0066de6e27f4e0b180 100644
--- a/tests/language/pure_function2_test.dart
+++ b/tests/language/pure_function2_test.dart
@@ -6,10 +6,9 @@ import "package:expect/expect.dart";
// Regression test for issue 17483.
-confuse(x) {
- if (new DateTime.now().millisecondsSinceEpoch == 42) return confuse(x);
- return x;
-}
+
+@AssumeDynamic() @NoInline()
+confuse(x) => x;
foo(trace) {
trace.add("foo");

Powered by Google App Engine
This is Rietveld 408576698