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

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

Issue 982883006: Update enum mirror test expectation to include hashCode. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.enums; 5 library test.enums;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 import 'stringify.dart'; 9 import 'stringify.dart';
10 10
(...skipping 28 matching lines...) Expand all
39 Expect.equals("Suite.HEARTS", 39 Expect.equals("Suite.HEARTS",
40 reflect(Suite.HEARTS).invoke(#toString, []).reflectee); 40 reflect(Suite.HEARTS).invoke(#toString, []).reflectee);
41 41
42 Expect.setEquals( 42 Expect.setEquals(
43 ['Variable(s(index) in s(Suite), final)', 43 ['Variable(s(index) in s(Suite), final)',
44 'Variable(s(CLUBS) in s(Suite), static, final)', 44 'Variable(s(CLUBS) in s(Suite), static, final)',
45 'Variable(s(DIAMONDS) in s(Suite), static, final)', 45 'Variable(s(DIAMONDS) in s(Suite), static, final)',
46 'Variable(s(SPADES) in s(Suite), static, final)', 46 'Variable(s(SPADES) in s(Suite), static, final)',
47 'Variable(s(HEARTS) in s(Suite), static, final)', 47 'Variable(s(HEARTS) in s(Suite), static, final)',
48 'Variable(s(values) in s(Suite), static, final)', 48 'Variable(s(values) in s(Suite), static, final)',
49 'Method(s(hashCode) in s(Suite), getter)',
49 'Method(s(toString) in s(Suite))'], 50 'Method(s(toString) in s(Suite))'],
50 reflectClass(Suite).declarations.values 51 reflectClass(Suite).declarations.values
51 .where((d) => !d.isPrivate).map(stringify)); 52 .where((d) => !d.isPrivate).map(stringify));
52 } 53 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698