| OLD | NEW |
| 1 part of angular.mock; | 1 part of angular.mock; |
| 2 | 2 |
| 3 String depth = ''; | 3 String depth = ''; |
| 4 | 4 |
| 5 ENTER(name) { | 5 ENTER(name) { |
| 6 dump('${depth}ENTER: $name'); | 6 dump('${depth}ENTER: $name'); |
| 7 depth = depth + ' '; | 7 depth = depth + ' '; |
| 8 } | 8 } |
| 9 | 9 |
| 10 LEAVE(name) { | 10 LEAVE(name) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 if (p1 != null) log.add(STRINGIFY(p1)); | 22 if (p1 != null) log.add(STRINGIFY(p1)); |
| 23 if (p2 != null) log.add(STRINGIFY(p2)); | 23 if (p2 != null) log.add(STRINGIFY(p2)); |
| 24 if (p3 != null) log.add(STRINGIFY(p3)); | 24 if (p3 != null) log.add(STRINGIFY(p3)); |
| 25 if (p4 != null) log.add(STRINGIFY(p4)); | 25 if (p4 != null) log.add(STRINGIFY(p4)); |
| 26 if (p5 != null) log.add(STRINGIFY(p5)); | 26 if (p5 != null) log.add(STRINGIFY(p5)); |
| 27 if (p6 != null) log.add(STRINGIFY(p6)); | 27 if (p6 != null) log.add(STRINGIFY(p6)); |
| 28 if (p7 != null) log.add(STRINGIFY(p7)); | 28 if (p7 != null) log.add(STRINGIFY(p7)); |
| 29 if (p8 != null) log.add(STRINGIFY(p8)); | 29 if (p8 != null) log.add(STRINGIFY(p8)); |
| 30 if (p9 != null) log.add(STRINGIFY(p9)); | 30 if (p9 != null) log.add(STRINGIFY(p9)); |
| 31 if (p10 != null) log.add(STRINGIFY(p10)); | 31 if (p10 != null) log.add(STRINGIFY(p10)); |
| 32 js.context['console'].callMethod('log', [log.join(', ')]); | 32 js.context['console'].callMethod('log', log.join(', ')); |
| 33 } | 33 } |
| 34 | 34 |
| 35 STRINGIFY(obj) { | 35 STRINGIFY(obj) { |
| 36 if (obj is List) { | 36 if (obj is List) { |
| 37 var out = []; | 37 var out = []; |
| 38 obj.forEach((i) => out.add(STRINGIFY(i))); | 38 obj.forEach((i) => out.add(STRINGIFY(i))); |
| 39 return '[${out.join(", ")}]'; | 39 return '[${out.join(", ")}]'; |
| 40 } else if (obj is Comment) { | 40 } else if (obj is Comment) { |
| 41 return '<!--${obj.text}-->'; | 41 return '<!--${obj.text}-->'; |
| 42 } else if (obj is Element) { | 42 } else if (obj is Element) { |
| 43 return obj.outerHtml; | 43 return obj.outerHtml; |
| 44 } else if (obj is String) { | 44 } else if (obj is String) { |
| 45 return '"$obj"'; | 45 return '"$obj"'; |
| 46 } else { | 46 } else { |
| 47 return obj.toString(); | 47 return obj.toString(); |
| 48 } | 48 } |
| 49 } | 49 } |
| OLD | NEW |