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

Unified Diff: tests/corelib_2/splay_tree_test.dart

Issue 2983383002: Migrated test block 26 to Dart 2.0. (Closed)
Patch Set: Updated splay_tree_from_iterables_test to not check for checked mode, and updated status files acco… 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
« no previous file with comments | « tests/corelib_2/splay_tree_from_iterables_test.dart ('k') | tests/corelib_strong/corelib_strong.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_2/splay_tree_test.dart
diff --git a/tests/corelib/splay_tree_test.dart b/tests/corelib_2/splay_tree_test.dart
similarity index 97%
rename from tests/corelib/splay_tree_test.dart
rename to tests/corelib_2/splay_tree_test.dart
index f1064a3b8679bf6b9f719b5a4a17e92d72fbfdc6..6048410dcb4da8c3d77384e66184974dae4174b2 100644
--- a/tests/corelib/splay_tree_test.dart
+++ b/tests/corelib_2/splay_tree_test.dart
@@ -125,12 +125,8 @@ void regressFromCompare() {
Expect.equals(null, map[key(5)]);
Expect.equals(null, map[1]);
Expect.equals(null, map["string"]);
- Expect.throws(() {
- map[1] = 42;
- });
- Expect.throws(() {
- map["string"] = 42;
- });
+ map[1] = 42; //# 01: compile-time error
+ map["string"] = 42; //# 02: compile-time error
map[key(5)] = 42;
Expect.equals(4, map.length);
Expect.equals(42, map[key(5)]);
« no previous file with comments | « tests/corelib_2/splay_tree_from_iterables_test.dart ('k') | tests/corelib_strong/corelib_strong.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698