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

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

Issue 79023010: Add demangle utility to Dartium's dart:html. Demangle typedef names in UserVisibleName. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years 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
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/native_DOMImplementation.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; 5 library test;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 9
10 typedef int _F(int); 10 typedef int _F(int i);
11 11
12 class _C<_T> { 12 class _C<_T> {
13 get g {} 13 get g {}
14 set s(x) {} 14 set s(x) {}
15 m(_p) {} 15 m(_p) {}
16 get _g {} 16 get _g {}
17 set _s(x) {} 17 set _s(x) {}
18 _m() {} 18 _m() {}
19 } 19 }
20 20
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 Expect.throws(() => MirrorSystem.getSymbol('_private'), 124 Expect.throws(() => MirrorSystem.getSymbol('_private'),
125 (e) => e is ArgumentError); 125 (e) => e is ArgumentError);
126 126
127 var notALibraryMirror = 7; 127 var notALibraryMirror = 7;
128 Expect.throws(() => MirrorSystem.getSymbol('_private', notALibraryMirror), 128 Expect.throws(() => MirrorSystem.getSymbol('_private', notALibraryMirror),
129 (e) => e is ArgumentError || e is TypeError); 129 (e) => e is ArgumentError || e is TypeError);
130 130
131 Expect.throws(() => MirrorSystem.getSymbol('public', notALibraryMirror), 131 Expect.throws(() => MirrorSystem.getSymbol('public', notALibraryMirror),
132 (e) => e is ArgumentError || e is TypeError); 132 (e) => e is ArgumentError || e is TypeError);
133 } 133 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/native_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698