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

Unified Diff: pkg/smoke/test/common.dart

Issue 583803002: fix toString calls on Type objects in smoke (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix typo Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/smoke/test/codegen/end_to_end_test.dart ('k') | pkg/smoke/test/static_in_pieces_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/smoke/test/common.dart
diff --git a/pkg/smoke/test/common.dart b/pkg/smoke/test/common.dart
index f8ce624f235c4c494f876b528890d715368832a9..a89b0db5ce068d5440fe66f415a49b7e712e1da7 100644
--- a/pkg/smoke/test/common.dart
+++ b/pkg/smoke/test/common.dart
@@ -302,6 +302,11 @@ main() {
expect(smoke.nameToSymbol('i'), #i);
});
});
+
+ test('invoke Type instance methods', () {
+ var a = new A();
+ expect(smoke.invoke(a.runtimeType, #toString, []), 'A');
+ });
}
class A {
@@ -315,7 +320,6 @@ class A {
static int staticValue = 42;
static void staticInc() { staticValue++; }
-
}
class B {
« no previous file with comments | « pkg/smoke/test/codegen/end_to_end_test.dart ('k') | pkg/smoke/test/static_in_pieces_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698