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

Side by Side Diff: tests/language/compile_time_constant_a_test.dart

Issue 10248007: test rename overhaul: step 8 - language tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 final m1 = const { 'a': 400 + 99 }; 5 final m1 = const { 'a': 400 + 99 };
6 final m2 = const { 'a': 499, 'b': 42 }; 6 final m2 = const { 'a': 499, 'b': 42 };
7 final m3 = const { 'm1': m1, 'm2': m2 }; 7 final m3 = const { 'm1': m1, 'm2': m2 };
8 final m4 = const { 'z': 9, 'a': 8, 'm': 7 }; 8 final m4 = const { 'z': 9, 'a': 8, 'm': 7 };
9 final m5 = const { '': 499 }; 9 final m5 = const { '': 499 };
10 final m6 = const { 'a': 499 }; 10 final m6 = const { 'a': 499 };
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 Expect.throws(() => m7.remove('a'), isIllegalAccessException); 117 Expect.throws(() => m7.remove('a'), isIllegalAccessException);
118 Expect.throws(() => m7.remove('b'), isIllegalAccessException); 118 Expect.throws(() => m7.remove('b'), isIllegalAccessException);
119 Expect.throws(() => m7.clear(), isIllegalAccessException); 119 Expect.throws(() => m7.clear(), isIllegalAccessException);
120 Expect.throws(() => m7['b'] = 42, isIllegalAccessException); 120 Expect.throws(() => m7['b'] = 42, isIllegalAccessException);
121 Expect.throws(() => m7['a'] = 499, isIllegalAccessException); 121 Expect.throws(() => m7['a'] = 499, isIllegalAccessException);
122 Expect.throws(() => m7.putIfAbsent('a', () => 499), 122 Expect.throws(() => m7.putIfAbsent('a', () => 499),
123 isIllegalAccessException); 123 isIllegalAccessException);
124 Expect.throws(() => m7.putIfAbsent('z', () => 499), 124 Expect.throws(() => m7.putIfAbsent('z', () => 499),
125 isIllegalAccessException); 125 isIllegalAccessException);
126 } 126 }
OLDNEW
« no previous file with comments | « tests/language/compile_time_constant9_test.dart ('k') | tests/language/compile_time_constant_b_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698