feat(zone): add initial implementation of VmTurnZone

This commit is contained in:
vsavkin
2014-12-05 18:30:45 -08:00
parent 4a08bbf7f1
commit df36ffb11d
14 changed files with 269 additions and 5 deletions
+1 -1
View File
@@ -66,4 +66,4 @@ _handleAsync(fn) {
}
return fn;
}
}
-1
View File
@@ -77,7 +77,6 @@ window.beforeEach(function() {
});
});
function mapToString(m) {
if (!m) {
return ''+m;
+23
View File
@@ -0,0 +1,23 @@
import {List, ListWrapper} from 'facade/collection';
export class Log {
_result:List;
constructor() {
this._result = [];
}
add(value) {
ListWrapper.push(this._result, value);
}
fn(value) {
return () => {
ListWrapper.push(this._result, value);
}
}
result() {
return ListWrapper.join(this._result, "; ");
}
}
+3 -2
View File
@@ -1,5 +1,6 @@
import {describe, it, iit, ddescribe, expect} from 'test_lib/test_lib';
import {MapWrapper} from 'facade/collection';
import {describe, it, iit, ddescribe, expect, tick, async} from 'test_lib/test_lib';
import {MapWrapper, ListWrapper} from 'facade/collection';
import {PromiseWrapper} from 'facade/async';
class TestObj {
prop;