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

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

Issue 180843004: Revert revision 33053 (Closed) Base URL: http://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
===================================================================
--- third_party/pkg/angular/lib/mock/log.dart (revision 33054)
+++ third_party/pkg/angular/lib/mock/log.dart (working copy)
@@ -15,14 +15,13 @@
selector: '[log]',
map: const {
'log': '@logMessage'
- })
+ }
+)
class LogAttrDirective implements NgAttachAware {
final Logger log;
String logMessage;
LogAttrDirective(this.log);
- void attach() {
- log(logMessage == '' ? 'LOG' : logMessage);
- }
+ attach() => log(logMessage == '' ? 'LOG' : logMessage);
}
/**
@@ -37,14 +36,12 @@
* expect(logger).toEqual(['foo', 'bar']);
*/
class Logger extends ListBase {
- final tokens = [];
+ final List tokens = [];
/**
* Add string token to the list.
*/
- void call(text) {
- tokens.add(text);
- }
+ call(dynamic text) => tokens.add(text);
/**
* Return a `;` separated list of recorded tokens.
@@ -56,11 +53,7 @@
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; }
}
« no previous file with comments | « third_party/pkg/angular/lib/mock/http_backend.dart ('k') | third_party/pkg/angular/lib/mock/mock_window.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698