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

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

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/log.dart
diff --git a/third_party/pkg/angular/lib/mock/log.dart b/third_party/pkg/angular/lib/mock/log.dart
index c0133b6331e73927dd07d9c65a3dcdfcf3c6da7e..ca8c745dbdc4b6496db7060f8a261ac301683744 100644
--- a/third_party/pkg/angular/lib/mock/log.dart
+++ b/third_party/pkg/angular/lib/mock/log.dart
@@ -15,13 +15,14 @@ part of angular.mock;
selector: '[log]',
map: const {
'log': '@logMessage'
- }
-)
+ })
class LogAttrDirective implements NgAttachAware {
final Logger log;
String logMessage;
LogAttrDirective(this.log);
- attach() => log(logMessage == '' ? 'LOG' : logMessage);
+ void attach() {
+ log(logMessage == '' ? 'LOG' : logMessage);
+ }
}
/**
@@ -36,12 +37,14 @@ class LogAttrDirective implements NgAttachAware {
* expect(logger).toEqual(['foo', 'bar']);
*/
class Logger extends ListBase {
- final List tokens = [];
+ final tokens = [];
/**
* Add string token to the list.
*/
- call(dynamic text) => tokens.add(text);
+ void call(text) {
+ tokens.add(text);
+ }
/**
* Return a `;` separated list of recorded tokens.
@@ -53,7 +56,11 @@ class Logger extends ListBase {
operator [](int index) => tokens[index];
- void operator []=(int index, value) { tokens[index] = value; }
+ void operator []=(int index, value) {
+ tokens[index] = value;
+ }
- void set length(int newLength) { tokens.length = newLength; }
+ void set length(int newLength) {
+ tokens.length = newLength;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698