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

Unified Diff: tests/lib/developer/inspect_test.dart

Issue 1132153002: Add Debugger.inspect. 1976 here we come! (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | « sdk/lib/developer/developer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/developer/inspect_test.dart
diff --git a/tests/language/deferred_function_type_lib.dart b/tests/lib/developer/inspect_test.dart
similarity index 57%
copy from tests/language/deferred_function_type_lib.dart
copy to tests/lib/developer/inspect_test.dart
index 1f0e610aac59572ef332c77ebb2d2acdac5ab189..9f06215011743783bfcb89694f921e47cc9ca7a7 100644
--- a/tests/language/deferred_function_type_lib.dart
+++ b/tests/lib/developer/inspect_test.dart
@@ -2,19 +2,16 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+import 'dart:developer';
import 'package:expect/expect.dart';
-class T {
- A foo(int x) {}
+class Point {
+ int x, y;
+ Point(this.x, this.y);
}
-class A{}
-
-typedef A F(int x);
-
-use(x) => x;
-
-runTest() {
- use(new A());
- Expect.isTrue(new T().foo is F);
+void main() {
+ var p_in = new Point(3, 4);
+ var p_out = inspect(p_in);
+ Expect.isTrue(identical(p_in, p_out));
}
« no previous file with comments | « sdk/lib/developer/developer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698