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

Unified Diff: tests/language_2/getter_no_setter_test.dart

Issue 3005643002: Migrate block 115. (Closed)
Patch Set: Tweak status files. Created 3 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_2/getter_no_setter2_test.dart ('k') | tests/language_2/getter_override2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_2/getter_no_setter_test.dart
diff --git a/tests/language/getter_no_setter_test.dart b/tests/language_2/getter_no_setter_test.dart
similarity index 57%
rename from tests/language/getter_no_setter_test.dart
rename to tests/language_2/getter_no_setter_test.dart
index 3218457dc60c2f33e57a1f215df9f634fd227765..a641589676dd1eaad7bd492f3f1d6d6220a2d9bc 100644
--- a/tests/language/getter_no_setter_test.dart
+++ b/tests/language_2/getter_no_setter_test.dart
@@ -9,28 +9,12 @@ class Example {
static int _var = 1;
static int get nextVar => _var++;
Example() {
- {
- bool flag_exception = false;
- try {
- nextVar = 1; // Equivalent to this.nextVar = 1.
- } catch (excpt) {
- flag_exception = true;
- }
- Expect.isTrue(flag_exception);
- }
- {
- bool flag_exception = false;
- try {
- this.nextVar = 1; // //# 00: static type warning
- } catch (excpt) {
- flag_exception = true;
- }
- Expect.isTrue(flag_exception); // //# 00: continued
- }
+ nextVar = 1; //# 03: compile-time error
+ this.nextVar = 1; //# 00: compile-time error
}
static test() {
- nextVar = 0; // //# 01: runtime error
- this.nextVar = 0; // //# 02: compile-time error
+ nextVar = 0; //# 01: compile-time error
+ this.nextVar = 0; //# 02: compile-time error
}
}
« no previous file with comments | « tests/language_2/getter_no_setter2_test.dart ('k') | tests/language_2/getter_override2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698