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

Unified Diff: tests/corelib_2/print_test.dart

Issue 2987203002: Migrated test block 17 to Dart 2.0. (Closed)
Patch Set: Created 3 years, 5 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/corelib_2/print_test.dart
diff --git a/tests/corelib_strong/print_test.dart b/tests/corelib_2/print_test.dart
similarity index 78%
rename from tests/corelib_strong/print_test.dart
rename to tests/corelib_2/print_test.dart
index 2cbe731e96389011a1682fe4d87b78096cf68ea4..5aca0390da3c5bb3ed662ff4dc769fa882bc85df 100644
--- a/tests/corelib_strong/print_test.dart
+++ b/tests/corelib_2/print_test.dart
@@ -6,10 +6,10 @@ import 'package:expect/expect.dart';
class A {
toString() {
- if (false
- || true // //# 01: runtime error
+ if (false
+ || true //# 01: runtime error
) {
- return 499;
+ return 499; //# 01: compile-time error
} else {
return "ok";
}

Powered by Google App Engine
This is Rietveld 408576698