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

Side by Side Diff: tests/lib/mirrors/invoke_named_test.dart

Issue 2765693002: Update all tests (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library test.invoke_named_test; 5 library test.invoke_named_test;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 8
9 import 'dart:async' show Future; 9 import 'dart:async' show Future;
10 10
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 'Insufficient positional arguments'); 274 'Insufficient positional arguments');
275 Expect.throws(() => cm.apply(['X', 'Y', 'Z', 'W']), 275 Expect.throws(() => cm.apply(['X', 'Y', 'Z', 'W']),
276 isNoSuchMethodError, 276 isNoSuchMethodError,
277 'Extra positional arguments'); 277 'Extra positional arguments');
278 Expect.throws(() => cm.apply(['X'], {const Symbol('undef'): 'Y'}), 278 Expect.throws(() => cm.apply(['X'], {const Symbol('undef'): 'Y'}),
279 isNoSuchMethodError, 279 isNoSuchMethodError,
280 'Unmatched named argument'); 280 'Unmatched named argument');
281 } 281 }
282 282
283 main() { 283 main() {
284 isDart2js = true; /// 01: ok 284 isDart2js = true; //# 01: ok
285 285
286 testSyncInvoke(reflect(new C())); // InstanceMirror 286 testSyncInvoke(reflect(new C())); // InstanceMirror
287 287
288 if (isDart2js) return; 288 if (isDart2js) return;
289 289
290 testSyncInvoke(reflectClass(D)); // ClassMirror 290 testSyncInvoke(reflectClass(D)); // ClassMirror
291 LibraryMirror lib = reflectClass(D).owner; 291 LibraryMirror lib = reflectClass(D).owner;
292 testSyncInvoke(lib); // LibraryMirror 292 testSyncInvoke(lib); // LibraryMirror
293 293
294 testSyncNewInstance(); 294 testSyncNewInstance();
295 295
296 testSyncApply(); 296 testSyncApply();
297 } 297 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698