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

Unified Diff: tests/compiler/dart2js_extra/checked_accessor_test.dart

Issue 11787023: Fix dart2js by copying keys of a map that is modified under us. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files for fixed tests. Created 7 years, 11 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 | « sdk/lib/_internal/compiler/implementation/closure.dart ('k') | tests/isolate/timer_not_available_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/checked_accessor_test.dart
diff --git a/tests/compiler/dart2js_extra/checked_accessor_test.dart b/tests/compiler/dart2js_extra/checked_accessor_test.dart
index cda70a7260c17f4bb9f4f01726313b3345942e20..f20091fcd1e59376f10830408a6b38c501c13134 100644
--- a/tests/compiler/dart2js_extra/checked_accessor_test.dart
+++ b/tests/compiler/dart2js_extra/checked_accessor_test.dart
@@ -7,7 +7,6 @@ class E {
}
class WithGetter {
- // get field => null;
String field;
}
@@ -15,8 +14,9 @@ void main() {
f(x) {
x.field = true;
}
-
- [new E(), new WithGetter()].forEach(f);
- new missingType();
- new E().field = 'a string';
+ Expect.throws(() {
+ [new E(), new WithGetter()].forEach(f);
+ new missingType();
+ new E().field = 'a string';
+ });
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/closure.dart ('k') | tests/isolate/timer_not_available_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698