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

Unified Diff: third_party/pkg/angular/lib/mock/debug.dart

Issue 1058283006: Update pubspecs and dependencies to get pkgbuild tests working. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
Index: third_party/pkg/angular/lib/mock/debug.dart
diff --git a/third_party/pkg/angular/lib/mock/debug.dart b/third_party/pkg/angular/lib/mock/debug.dart
deleted file mode 100644
index d04308b96391521af1fcb1087fece749dd3bd575..0000000000000000000000000000000000000000
--- a/third_party/pkg/angular/lib/mock/debug.dart
+++ /dev/null
@@ -1,49 +0,0 @@
-part of angular.mock;
-
-String depth = '';
-
-ENTER(name) {
- dump('${depth}ENTER: $name');
- depth = depth + ' ';
-}
-
-LEAVE(name) {
- depth = depth.substring(0, depth.length -2);
- dump('${depth}LEAVE: $name');
-}
-
-MARK(name) {
- dump('$depth$name');
-}
-
-
-dump([p1, p2, p3, p4, p5, p6, p7, p8, p9, p10]) {
- var log = [];
- if (p1 != null) log.add(STRINGIFY(p1));
- if (p2 != null) log.add(STRINGIFY(p2));
- if (p3 != null) log.add(STRINGIFY(p3));
- if (p4 != null) log.add(STRINGIFY(p4));
- if (p5 != null) log.add(STRINGIFY(p5));
- if (p6 != null) log.add(STRINGIFY(p6));
- if (p7 != null) log.add(STRINGIFY(p7));
- if (p8 != null) log.add(STRINGIFY(p8));
- if (p9 != null) log.add(STRINGIFY(p9));
- if (p10 != null) log.add(STRINGIFY(p10));
- js.context['console'].callMethod('log', [log.join(', ')]);
-}
-
-STRINGIFY(obj) {
- if (obj is List) {
- var out = [];
- obj.forEach((i) => out.add(STRINGIFY(i)));
- return '[${out.join(", ")}]';
- } else if (obj is Comment) {
- return '<!--${obj.text}-->';
- } else if (obj is Element) {
- return obj.outerHtml;
- } else if (obj is String) {
- return '"$obj"';
- } else {
- return obj.toString();
- }
-}
« no previous file with comments | « third_party/pkg/angular/lib/introspection.dart ('k') | third_party/pkg/angular/lib/mock/exception_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698