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

Unified Diff: dart/tests/try/web/incremental_compilation_update_test.dart

Issue 714843002: Delete instance methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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: dart/tests/try/web/incremental_compilation_update_test.dart
diff --git a/dart/tests/try/web/incremental_compilation_update_test.dart b/dart/tests/try/web/incremental_compilation_update_test.dart
index 2223ce6e4a0e9f2030883316dadae93b00eebc2d..2b593ad55e2ab1d6712480e9f6aae41c2718f71e 100644
--- a/dart/tests/try/web/incremental_compilation_update_test.dart
+++ b/dart/tests/try/web/incremental_compilation_update_test.dart
@@ -198,46 +198,46 @@ main() {
const <String> ['v2']),
],
-// // Test that deleting an instance method works.
-// const <ProgramResult>[
-// const ProgramResult(
-// """
-// class C {
-// m() {
-// print('v1');
-// }
-// }
-// var instance;
-// main() {
-// if (instance == null) {
-// instance = new C();
-// }
-// try {
-// instance.m();
-// } catch (e) {
-// print('v2');
-// }
-// }
-// """,
-// const <String> ['v1']),
-// const ProgramResult(
-// """
-// class C {
-// }
-// var instance;
-// main() {
-// if (instance == null) {
-// instance = new C();
-// }
-// try {
-// instance.m();
-// } catch (e) {
-// print('v2');
-// }
-// }
-// """,
-// const <String> ['v2']),
-// ],
+ // Test that deleting an instance method works.
+ const <ProgramResult>[
+ const ProgramResult(
+ """
+class C {
+ m() {
+ print('v1');
+ }
+}
+var instance;
+main() {
+ if (instance == null) {
+ instance = new C();
+ }
+ try {
+ instance.m();
+ } catch (e) {
+ print('v2');
+ }
+}
+""",
+ const <String> ['v1']),
+ const ProgramResult(
+ """
+class C {
+}
+var instance;
+main() {
+ if (instance == null) {
+ instance = new C();
+ }
+ try {
+ instance.m();
+ } catch (e) {
+ print('v2');
+ }
+}
+""",
+ const <String> ['v2']),
+ ],
// Test that deleting an instance method works, even when accessed through
// super.

Powered by Google App Engine
This is Rietveld 408576698