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

Side by Side Diff: tests/language_strong/no_such_method_native_test.dart

Issue 2962263002: fix #30030, fix #27327 - fix tearoffs and various Object member bugs (Closed)
Patch Set: fix 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 // Dart test program testing that NoSuchMethod is properly called. 4 // Dart test program testing that NoSuchMethod is properly called.
5 5
6 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
7 7
8 Invocation invocation; 8 Invocation invocation;
9 9
10 class C { 10 class C {
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 main() { 25 main() {
26 dynamic c = new C(); 26 dynamic c = new C();
27 Expect.equals(42, c.foobar(123)); 27 Expect.equals(42, c.foobar(123));
28 Expect.equals(invocation.memberName, #foobar); 28 Expect.equals(invocation.memberName, #foobar);
29 Expect.listEquals(invocation.positionalArguments, [123]); 29 Expect.listEquals(invocation.positionalArguments, [123]);
30 expectNSME(null); 30 expectNSME(null);
31 expectNSME(777); 31 expectNSME(777);
32 expectNSME('hello'); 32 expectNSME('hello');
33 // These fail because of https://github.com/dart-lang/dev_compiler/issues/592. 33 expectNSME([]);
34 // expectNSME([]); 34 expectNSME(<String>['a', 'b', 'c']);
35 // expectNSME(['a', 'b', 'c']);
36 } 35 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/private/js_array.dart ('k') | tests/language_strong/runtime_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698